Subversion Repositories ALCASAR

Rev

Rev 3103 | Rev 3111 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3103 Rev 3104
Line 233... Line 233...
233
then
233
then
234
	echo "Cleaning the system : "
234
	echo "Cleaning the system : "
235
else
235
else
236
	echo "Nettoyage du système : "
236
	echo "Nettoyage du système : "
237
fi
237
fi
238
unused_rpm="shorewall mandi plymouth squid polkit pm-utils"
238
unused_rpm="shorewall mandi plymouth squid polkit pm-utils dnsmasq"
239
/usr/sbin/urpme --auto -a $unused_rpm
239
/usr/sbin/urpme --auto -a $unused_rpm
240
for rpm in `rpm -qa|grep mga7`; do urpme --auto $rpm; done
240
for rpm in `rpm -qa|grep mga7`; do urpme --auto $rpm; done
241
/usr/sbin/urpme --auto --auto-orphans
241
/usr/sbin/urpme --auto --auto-orphans
242
 
242
 
243
# Save chilli launch script (erase with new rpm one)
243
# Save chilli launch script (erase with new rpm one)
Line 283... Line 283...
283
done
283
done
284
if [ $count_pkg -ne $nb_pkg ]
284
if [ $count_pkg -ne $nb_pkg ]
285
then
285
then
286
	exit 1
286
	exit 1
287
fi
287
fi
-
 
288
 
-
 
289
# .rpmnew handling (unused with ALCASAR)
-
 
290
[ -e /etc/shadow.rpmnew ] && rm -f /etc/shadow.rpmnew
-
 
291
[ -e /etc/sysconfig/system.rpmnew ] && rm -f /etc/sysconfig/system.rpmnew
-
 
292
[ -e /etc/rpm/macros.rpmnew ] && rm -f /etc/rpm/macros.rpmnew
-
 
293
[ -e /etc/fstab.rpmnew ] && rm -f /etc/fstab.rpmnew
-
 
294
[ -e /etc/shells.rpmnew ] && rm -f /etc/shells.rpmnew
-
 
295
[ -e /etc/hosts.rpmnew ] && rm -f /etc/hosts.rpmnew
-
 
296
[ -e /etc/systemd/journald.conf.rpmnew ] && rm -f /etc/systemd/journald.conf.rpmnew
-
 
297
[ -e /etc/raddb/certs/dh.rpmnew ] && rm -f /etc/raddb/certs/dh.rpmnew
-
 
298
 
-
 
299
# .rpmnew handling (used with ALCASAR)
-
 
300
[ -e /etc/php.ini.rpmnew ] && mv -f /etc/php.ini.rpmnew /etc/php.ini.default
-
 
301
[ -e /etc/lighttpd/lighttpd.conf.rpmnew ] && mv -f /etc/lighttpd/lighttpd.conf.rpmnew /etc/lighttpd/lighttpd.conf.default
-
 
302
[ -e /etc/lighttpd/modules.conf.rpmnew ] && mv -f /etc/lighttpd/modules.conf.rpmnew /etc/lighttpd/modules.conf.default
-
 
303
[ -e /etc/e2guardian/e2guardian.conf.rpmnew ] && mv -f /etc/e2guardian/e2guardian.conf.rpmnew /etc/e2guardian/e2guardian.conf.default
-
 
304
[ -e /etc/e2guardian/e2guardianf1.conf.rpmnew ] && mv -f /etc/e2guardian/e2guardianf1.conf.rpmnew /etc/e2guardian/e2guardianf1.conf.default
-
 
305
[ -e /etc/e2guardian/lists/urlregexplist.rpmnew ] && mv -f /etc/e2guardian/lists/urlregexplist.rpmnew /etc/e2guardian/lists/urlregexplist.default
-
 
306
[ -e /etc/e2guardian/lists/bannedregexpurllist.rpmnew ] && mv -f /etc/e2guardian/lists/bannedregexpurllist.rpmnew /etc/e2guardian/lists/bannedregexpurllist.default
-
 
307
[ -e /etc/clamd.conf.rpmnew ] && mv -f /etc/clamd.conf.rpmnew /etc/clamd.conf.default
-
 
308
[ -e /etc/freshclam.conf.rpmnew ] && mv -f /etc/freshclam.conf.rpmnew /etc/freshclam.conf.default
-
 
309
[ -e /etc/vnstat.conf.rpmnew ] && mv -f /etc/vnstat.conf.rpmnew /etc/vnstat.conf.default
-
 
310
[ -e /etc/fail2ban/jail.conf.rpmnew ] && mv -f /etc/fail2ban/jail.conf.rpmnew /etc/fail2ban/jail.conf.default
-
 
311
[ -e /etc/ssh/sshd_config.rpmnew ] && mv -f /etc/ssh/sshd_config.rpmnew /etc/ssh/sshd_config.default
-
 
312
 
288
exit 0
313
exit 0