Line 17... |
Line 17... |
17 |
# (old) perl-Socket6 : needed by nfsen
|
17 |
# (old) perl-Socket6 : needed by nfsen
|
18 |
# "fonts-dejavu-common" & "fonts-ttf-dejavu" : fonts needed by wkhtmltopdf
|
18 |
# "fonts-dejavu-common" & "fonts-ttf-dejavu" : fonts needed by wkhtmltopdf
|
19 |
# "lsscsi" & nvme-cli" & "php-dom" : needed by phpsysinfo
|
19 |
# "lsscsi" & nvme-cli" & "php-dom" : needed by phpsysinfo
|
20 |
# "socat" : avoid a warning when run the install script of letsencrypt ("acme.sh")
|
20 |
# "socat" : avoid a warning when run the install script of letsencrypt ("acme.sh")
|
21 |
# "sudo" : needed after a reinstallation (to be investigated)
|
21 |
# "sudo" : needed after a reinstallation (to be investigated)
|
22 |
# "clamav" + "clamav-db" : needed because of a lack of mutual dependance
|
- |
|
23 |
# "postfix" + "cyrus-sasl" + "lib64sasl2-plug-plain" : email registration method
|
22 |
# "postfix" + "cyrus-sasl" + "lib64sasl2-plug-plain" : email registration method
|
24 |
PACKAGES="vim-enhanced freeradius freeradius-mysql freeradius-ldap lighttpd lighttpd-mod_auth php-fpm php-gd php-ldap php-mysqli php-mbstring php-sockets php-curl php-pdo_sqlite php-cli php-dom php-filter unbound e2guardian postfix mariadb ntp bind-utils openssh-server rng-utils rsync clamav clamav-db clamd fail2ban gnupg2 ulogd ipset usb_modeswitch vnstat dos2unix p7zip msec kernel-userspace-headers kernel-firmware kernel-firmware-nonfree dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli sudo socat postfix cyrus-sasl lib64sasl2-plug-plain iftop"
|
23 |
PACKAGES="vim-enhanced freeradius freeradius-mysql freeradius-ldap lighttpd lighttpd-mod_auth php-fpm php-gd php-ldap php-mysqli php-mbstring php-sockets php-curl php-pdo_sqlite php-cli php-dom php-filter unbound e2guardian postfix mariadb ntp bind-utils openssh-server rng-utils rsync fail2ban gnupg2 ulogd ipset usb_modeswitch vnstat dos2unix p7zip msec kernel-userspace-headers kernel-firmware kernel-firmware-nonfree dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli sudo socat postfix cyrus-sasl lib64sasl2-plug-plain iftop"
|
25 |
|
24 |
|
26 |
rpm_repository_sync ()
|
25 |
rpm_repository_sync ()
|
27 |
{
|
26 |
{
|
28 |
cat <<EOF > /etc/urpmi/urpmi.cfg
|
27 |
cat <<EOF > /etc/urpmi/urpmi.cfg
|
29 |
{
|
28 |
{
|
Line 239... |
Line 238... |
239 |
then
|
238 |
then
|
240 |
echo "Cleaning the system : "
|
239 |
echo "Cleaning the system : "
|
241 |
else
|
240 |
else
|
242 |
echo "Nettoyage du système : "
|
241 |
echo "Nettoyage du système : "
|
243 |
fi
|
242 |
fi
|
244 |
unused_rpm="shorewall mandi plymouth squid polkit pm-utils dnsmasq"
|
243 |
unused_rpm="shorewall mandi plymouth squid polkit pm-utils dnsmasq clamav clamd clamav-db"
|
245 |
/usr/sbin/urpme --auto -a $unused_rpm
|
244 |
/usr/sbin/urpme --auto -a $unused_rpm
|
246 |
for rpm in `rpm -qa|grep mga7`; do urpme --auto $rpm; done
|
245 |
for rpm in `rpm -qa|grep mga7`; do urpme --auto $rpm; done
|
247 |
/usr/sbin/urpme --auto --auto-orphans
|
246 |
/usr/sbin/urpme --auto --auto-orphans
|
248 |
|
247 |
|
249 |
# Save chilli launch script (erase with new rpm one)
|
248 |
# Save chilli launch script (erase with new rpm one)
|
Line 308... |
Line 307... |
308 |
[ -e /etc/lighttpd/modules.conf.rpmnew ] && mv -f /etc/lighttpd/modules.conf.rpmnew /etc/lighttpd/modules.conf.default
|
307 |
[ -e /etc/lighttpd/modules.conf.rpmnew ] && mv -f /etc/lighttpd/modules.conf.rpmnew /etc/lighttpd/modules.conf.default
|
309 |
[ -e /etc/e2guardian/e2guardian.conf.rpmnew ] && mv -f /etc/e2guardian/e2guardian.conf.rpmnew /etc/e2guardian/e2guardian.conf.default
|
308 |
[ -e /etc/e2guardian/e2guardian.conf.rpmnew ] && mv -f /etc/e2guardian/e2guardian.conf.rpmnew /etc/e2guardian/e2guardian.conf.default
|
310 |
[ -e /etc/e2guardian/e2guardianf1.conf.rpmnew ] && mv -f /etc/e2guardian/e2guardianf1.conf.rpmnew /etc/e2guardian/e2guardianf1.conf.default
|
309 |
[ -e /etc/e2guardian/e2guardianf1.conf.rpmnew ] && mv -f /etc/e2guardian/e2guardianf1.conf.rpmnew /etc/e2guardian/e2guardianf1.conf.default
|
311 |
[ -e /etc/e2guardian/lists/urlregexplist.rpmnew ] && mv -f /etc/e2guardian/lists/urlregexplist.rpmnew /etc/e2guardian/lists/urlregexplist.default
|
310 |
[ -e /etc/e2guardian/lists/urlregexplist.rpmnew ] && mv -f /etc/e2guardian/lists/urlregexplist.rpmnew /etc/e2guardian/lists/urlregexplist.default
|
312 |
[ -e /etc/e2guardian/lists/bannedregexpurllist.rpmnew ] && mv -f /etc/e2guardian/lists/bannedregexpurllist.rpmnew /etc/e2guardian/lists/bannedregexpurllist.default
|
311 |
[ -e /etc/e2guardian/lists/bannedregexpurllist.rpmnew ] && mv -f /etc/e2guardian/lists/bannedregexpurllist.rpmnew /etc/e2guardian/lists/bannedregexpurllist.default
|
313 |
[ -e /etc/clamd.conf.rpmnew ] && mv -f /etc/clamd.conf.rpmnew /etc/clamd.conf.default
|
- |
|
314 |
[ -e /etc/freshclam.conf.rpmnew ] && mv -f /etc/freshclam.conf.rpmnew /etc/freshclam.conf.default
|
- |
|
315 |
[ -e /etc/vnstat.conf.rpmnew ] && mv -f /etc/vnstat.conf.rpmnew /etc/vnstat.conf.default
|
312 |
[ -e /etc/vnstat.conf.rpmnew ] && mv -f /etc/vnstat.conf.rpmnew /etc/vnstat.conf.default
|
316 |
[ -e /etc/fail2ban/jail.conf.rpmnew ] && mv -f /etc/fail2ban/jail.conf.rpmnew /etc/fail2ban/jail.conf.default
|
313 |
[ -e /etc/fail2ban/jail.conf.rpmnew ] && mv -f /etc/fail2ban/jail.conf.rpmnew /etc/fail2ban/jail.conf.default
|
317 |
[ -e /etc/ssh/sshd_config.rpmnew ] && mv -f /etc/ssh/sshd_config.rpmnew /etc/ssh/sshd_config.default
|
314 |
[ -e /etc/ssh/sshd_config.rpmnew ] && mv -f /etc/ssh/sshd_config.rpmnew /etc/ssh/sshd_config.default
|
318 |
|
315 |
|
319 |
exit 0
|
316 |
exit 0
|