diff options
Diffstat (limited to 'init-sh/custom.sh')
-rwxr-xr-x | init-sh/custom.sh | 8 |
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 + |