diff options
Diffstat (limited to 'init-sh/level0.sh')
-rwxr-xr-x | init-sh/level0.sh | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh index 96bdc54..07c6126 100755 --- a/init-sh/level0.sh +++ b/init-sh/level0.sh @@ -70,18 +70,15 @@ echo "Setting umask to 022 (u=rw,g=r,o=r) :" AddRules "umask 022" /etc/profile.d/msec.sh AddRules "umask 022" /etc/profile.d/msec.csh + echo "Adding \"non secure\" PATH variable :" -if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then - AddRules "export PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet - AddRules "setenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -fi -if ! echo ${PATH} |grep -q /usr/games ; then - AddRules "export PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet - AddRules "setenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -fi +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet -AddRules "export PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "setenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet # Xserver echo "Allowing users to connect X server from everywhere :" |