# If we are running Linux or Linux-x86-64, check selinux settings.
if [ "${DefaultSystemID}" = "Linux" \
-o "${DefaultSystemID}" = "Linux-x86-64" ]; then
# If selinuxenabled returns with 0 status it is enabled.
SELinuxEnabled=`selinuxenabled 2>/dev/null;echo ${?}`
if [ -d "${FullTargetDirectory}/SystemFiles/Libraries" \
-a "${SELinuxEnabled}" = "0" ]; then
if [ "${Automatic}" = "false" ]; then
SELinux=""
elif [ "${SELinux}" = "y" -o "${SELinux}" = "Y" ]; then
SELinux="y"
elif [ "${SELinux}" = "n" -o "${SELinux}" = "N" ]; then
SELinux="n"
else
PrintCopyText Error "BadSELinuxAutomaticError"
SELinux="n"
fi
PrintCopyText Text "SELinuxText"
PrintCopyText Prompt "SELinuxPrompt"
if [ "${Automatic}" = "true" ]; then
echo "${SELinux}"
fi
while [ "${SELinux}" != "y" -a "${SELinux}" != "n" ]; do
read SELinux
if [ "${SELinux}" = "y" -o "${SELinux}" = "Y" ]; then
SELinux="y"
elif [ "${SELinux}" = "n" -o "${SELinux}" = "N" ]; then
SELinux="n"
else
PrintCopyText Error "BadSELinuxError"
echo ""
PrintCopyText Text "SELinuxText"
PrintCopyText Prompt "SELinuxPrompt"
fi
done