From 5574ff9284a7c4b8459b40edd1eb297bd0044ef0 Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Thu, 29 Nov 2001 17:23:31 +0000 Subject: bring back the cleaning of the profile files in order to make an update work --- init-sh/lib.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'init-sh') 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 : " -- cgit v1.2.1