aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/custom.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-10 15:22:36 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-10 15:22:36 +0000
commitbbe22d8926f535bffb7e79ae8255a45502b91292 (patch)
tree86bd2eca7991ae81123dc845800e84f4ffcbd14d /init-sh/custom.sh
parent667840ad691f572d7feb5cd715af2bd5424283ae (diff)
downloadmsec-bbe22d8926f535bffb7e79ae8255a45502b91292.tar
msec-bbe22d8926f535bffb7e79ae8255a45502b91292.tar.gz
msec-bbe22d8926f535bffb7e79ae8255a45502b91292.tar.bz2
msec-bbe22d8926f535bffb7e79ae8255a45502b91292.tar.xz
msec-bbe22d8926f535bffb7e79ae8255a45502b91292.zip
*** empty log message ***
Diffstat (limited to 'init-sh/custom.sh')
-rwxr-xr-xinit-sh/custom.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/init-sh/custom.sh b/init-sh/custom.sh
index 46ba9af..cfd67b7 100755
--- a/init-sh/custom.sh
+++ b/init-sh/custom.sh
@@ -155,7 +155,7 @@ echo "Do you want to disallow rpm to automatically enable a new installed server
echo "yes = you will need to chkconfig (--add ) servername for the server to run on boot."
echo "no = rpm will do it for you, but you have less control of what is running on your machine."
WaitAnswer; clear
-if [[ ${answer} == yes ]; then
+if [[ ${answer} == yes ]]; then
export SECURE_LEVEL="4"
AddRules "SECURE_LEVEL=\"4\"" /etc/profile
else
@@ -195,11 +195,13 @@ echo "This permit you to not use ./progname & to just type progname"
echo "However this is a *high* security risk."
WaitAnswer; clear
if [[ ${answer} == yes ]]; then
- AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/profile
+ AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/profile quiet
else
- AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile
+ AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile quiet
fi
+AddRules "export PATH SECURE_LEVEL" /etc/profile
+