21,7 → 21,7 |
# "sudo" : needed after a reinstallation (to be investigated) |
# "clamav" + "clamav-db" : needed because of a lack of mutual dependance |
# "postfix" + "cyrus-sasl" + "lib64sasl2-plug-plain" : email registration method |
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 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-nonfree dnsmasq dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli sudo socat postfix cyrus-sasl lib64sasl2-plug-plain iftop" |
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 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 dnsmasq dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli sudo socat postfix cyrus-sasl lib64sasl2-plug-plain iftop" |
|
rpm_repository_sync () |
{ |
122,6 → 122,18 |
fi |
fi |
done |
|
# At this time, we only skip Kernel update |
echo "/^kernel/" > /etc/urpmi/skip.list |
if [ `egrep '^exclude=' /etc/dnf/dnf.conf |wc -l` -eq "1" ]; then |
$SED "s?^exclude=.*?exclude=kernel\*?g" /etc/dnf/dnf.conf |
else |
echo "exclude=kernel*" >> /etc/dnf/dnf.conf |
fi |
|
# Remove some RPMs in order to avoid error and automatic update |
urpme wkhtmltopdf freeradius-ldap |
|
# download the kernel used by ALCASAR |
if [ $Lang == "fr" ] |
then |
130,15 → 142,7 |
echo "Download the Linux kernel used by ALCASAR. Please wait ..." |
fi |
urpmi --auto --quiet $KERNEL |
# Remove some RPMs in order to avoid error (or automatic update of "home made" RPM) |
urpme wkhtmltopdf freeradius-ldap |
# At this time, only skip Kernel update |
echo "/^kernel/" > /etc/urpmi/skip.list |
if [ `egrep '^exclude=' /etc/dnf/dnf.conf |wc -l` -eq "1" ]; then |
$SED "s?^exclude=.*?exclude=kernel\*?g" /etc/dnf/dnf.conf |
else |
echo "exclude=kernel*" >> /etc/dnf/dnf.conf |
fi |
|
# download updated RPM in cache |
if [ $Lang == "fr" ] |
then |
223,6 → 227,7 |
urpme --auto $i |
fi |
done |
|
# delete unused RPMs |
if [ $Lang == "fr" ] |
then |
232,6 → 237,7 |
fi |
unused_rpm="shorewall mandi plymouth squid polkit pm-utils" |
/usr/sbin/urpme --auto -a $unused_rpm |
for rpm in `rpm -qa|grep mga7`; do urpme --auto $rpm; done |
/usr/sbin/urpme --auto --auto-orphans |
|
# Save chilli launch script (erase with new rpm one) |
243,6 → 249,7 |
done |
# restore chilli launch script |
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/ |
|
# Clean the RPM cache |
urpmi --clean |
# the ipt-netflow RPM add the kernel module ipt_NETFLOW (the modules dependance tree need to be updated). "2>/dev/null" in order not to display a error (the running kernel is not the ALCASAR one during the installation process) |
262,6 → 269,7 |
then |
exit 1 |
fi |
|
# test if all custom rpms are correctly installed |
count_pkg=0; nb_pkg=0; |
for pkg in `ls rpms/$ARCH/|sed 's/.x86_64.rpm//'` |