11,11 → 11,8 |
Lang=`echo $LANG|cut -c 1-2` |
VERSION="4" |
ARCH="i586" |
# The kernel version we compile netflow for |
#KERNEL="kernel-desktop-3.4.52-1.mga2-1-1.mga2" |
#ModuleTree="kernel-desktop-3.4.52-1.mga2" |
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ****** |
PACKAGES="freeradius freeradius-mysql freeradius-ldap freeradius-web apache apache-mod_ssl apache-mod_php iptables squid dansguardian postfix mariadb ntp bind-utils openssh-server php-xml php-ldap php-mysql php-mbstring php-sockets rng-utils dnsmasq rsync clamav pm-fallback-policy perl-rrdtool perl-MailTools perl-Socket6 fail2ban gnupg man ipset" |
PACKAGES="freeradius freeradius-mysql freeradius-ldap freeradius-web apache apache-mod_ssl apache-mod_php dansguardian postfix mariadb ntp bind-utils openssh-server php-xml php-ldap php-mysql php-mbstring php-sockets rng-utils dnsmasq rsync clamav pm-fallback-policy perl-rrdtool perl-MailTools perl-Socket6 fail2ban gnupg man ipset ulogd" |
|
rpm_repository_sync () |
{ |
151,17 → 148,6 |
/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null |
echo -n "." |
done |
# download the kernel used by ALCASAR and fix its version |
#if [ $Lang == "fr" ] |
#then |
# echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..." |
#else |
# echo "Download the Linux kernel used by ALCASAR. Please wait ..." |
#fi |
#urpmi --auto --quiet $KERNEL |
#echo "/^kernel/" > /etc/urpmi/skip.list |
# download "timezone" to avoid a mageia issue --> should be remove with mageia3 |
#urpmi timezone |
# download updated RPM in cache |
if [ $Lang == "fr" ] |
then |
234,17 → 220,8 |
rpm_error |
exit 1 |
fi |
# Keep only the last kernel version |
#kernelVersion=$(rpm -qa | grep "kernel-desktop") |
#for i in $kernelVersion |
#do |
# if [ ! $i = $KERNEL ];then |
# urpme --auto $i |
# fi |
#done |
echo "STOP"; read a |
# delete unused services |
for rm_rpm in c-icap-server mageia-gfxboot-theme |
for rm_rpm in mageia-gfxboot-theme |
do |
/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null |
done |
257,5 → 234,4 |
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/ |
# Clean the RPM cache |
urpmi --clean |
|
exit 0 |