aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/lib.sh
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-11-29 17:23:31 +0000
committerFlorin Grad <florin@mandriva.com>2001-11-29 17:23:31 +0000
commit5574ff9284a7c4b8459b40edd1eb297bd0044ef0 (patch)
tree3dc320351aa0e8df3b8d67217c58892b2e409d76 /init-sh/lib.sh
parent7eced0b066db99907feeb1f33b6d1776d2b60802 (diff)
downloadmsec-5574ff9284a7c4b8459b40edd1eb297bd0044ef0.tar
msec-5574ff9284a7c4b8459b40edd1eb297bd0044ef0.tar.gz
msec-5574ff9284a7c4b8459b40edd1eb297bd0044ef0.tar.bz2
msec-5574ff9284a7c4b8459b40edd1eb297bd0044ef0.tar.xz
msec-5574ff9284a7c4b8459b40edd1eb297bd0044ef0.zip
bring back the cleaning of the profile files in order to make an update work
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r--init-sh/lib.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index fac4c0e..2f9e8f2 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -338,6 +338,9 @@ CleanRules /etc/logrotate.conf
CleanRules /etc/rc.d/rc.local
CleanRules /etc/rc.d/rc.firewall
CleanRules /etc/crontab
+CleanRules /etc/profile
+CleanRules /etc/zprofile
+
if [[ -f /etc/X11/xinit.d/msec ]]; then
CleanRules /etc/X11/xinit.d/msec
@@ -350,6 +353,14 @@ if [[ -f /etc/sysconfig/msec ]]; then
CleanRules /etc/sysconfig/msec
fi
+if [[ -f /etc/profile.d/msec.sh && -f /etc/profile.d/msec.csh ]]; then
+ CleanRules /etc/profile.d/msec.sh
+ CleanRules /etc/profile.d/msec.csh
+else
+ chmod 755 /etc/profile.d/msec.sh
+ chmod 755 /etc/profile.d/msec.csh
+fi
+
echo -e "\nStarting to reconfigure the system : "
# For all secure level
echo "Setting spoofing protection : "