Subversion Repositories ALCASAR

Rev

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

Rev 2728 Rev 2730
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 2728 2019-05-20 20:55:06Z rexy $
2
# $Id: alcasar-urpmi.sh 2730 2019-05-21 22:03:25Z rexy $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by 3abtux and Rexy
5
# by 3abtux and Rexy
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 10... Line 10...
10
 
10
 
11
Lang=`echo $LANG|cut -c 1-2`
11
Lang=`echo $LANG|cut -c 1-2`
12
VERSION="6"
12
VERSION="6"
13
ARCH="x86_64"
13
ARCH="x86_64"
14
# The kernel version we compile netflow for
14
# The kernel version we compile netflow for
15
KERNEL="kernel-server-4.14.106-1.mga6-1-1.mga6"
15
KERNEL="kernel-server-4.14.119-1.mga6-1-1.mga6"
16
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
16
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
17
PACKAGES="arp-scan vim-enhanced freeradius freeradius-mysql freeradius-ldap lighttpd lighttpd-mod_auth php-fpm e2guardian postfix mariadb ntp bind-utils openssh-server php-xml php-ldap php-mysqli php-mbstring php-sockets php-cli php-curl php-pdo_sqlite php-json rng-utils rsync clamav perl-rrdtool perl-MailTools perl-Socket6 fail2ban gnupg ulogd pm-fallback-policy ipset cronie-anacron usbutils locales-en usb_modeswitch tinyproxy vnstat php-gd sudo iftop man dos2unix p7zip bc msec kernel-userspace-headers kernel-firmware-nonfree dnsmasq dhcp-server netcat-traditional"
17
PACKAGES="arp-scan vim-enhanced freeradius freeradius-mysql freeradius-ldap lighttpd lighttpd-mod_auth php-fpm e2guardian postfix mariadb ntp bind-utils openssh-server php-xml php-ldap php-mysqli php-mbstring php-sockets php-cli php-curl php-pdo_sqlite php-json rng-utils rsync clamav perl-rrdtool perl-MailTools perl-Socket6 fail2ban gnupg ulogd pm-fallback-policy ipset cronie-anacron usbutils locales-en usb_modeswitch tinyproxy vnstat php-gd sudo iftop man dos2unix p7zip bc msec kernel-userspace-headers kernel-firmware-nonfree dnsmasq dhcp-server netcat-traditional"
18
 
18
 
19
rpm_repository_sync ()
19
rpm_repository_sync ()
20
{
20
{
Line 112... Line 112...
112
			exit 1
112
			exit 1
113
		fi
113
		fi
114
	fi
114
	fi
115
done
115
done
116
 
116
 
117
# download the kernel used by ALCASAR and fix its version
117
# download the kernel used by ALCASAR
118
if [ $Lang == "fr" ]
118
if [ $Lang == "fr" ]
119
then
119
then
120
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
120
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
121
else
121
else
122
	echo "Download the Linux kernel used by ALCASAR. Please wait ..."
122
	echo "Download the Linux kernel used by ALCASAR. Please wait ..."
123
fi
123
fi
124
echo "/^kernel/" > /etc/urpmi/skip.list
-
 
125
urpmi --auto --quiet $KERNEL
124
urpmi --auto --quiet $KERNEL
126
# download updated RPM in cache
125
# download updated RPM in cache
127
if [ $Lang == "fr" ]
126
if [ $Lang == "fr" ]
128
then
127
then
129
	echo "Récupération des paquetages de mise à jour. Veuillez patienter ..."
128
	echo "Récupération des paquetages de mise à jour. Veuillez patienter ..."
Line 226... Line 225...
226
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/
225
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/
227
# Clean the RPM cache
226
# Clean the RPM cache
228
urpmi --clean
227
urpmi --clean
229
# the ipt-netflow RPM add the kernel module ipt_NETFLOW (the modules dependance tree need to be updated)
228
# the ipt-netflow RPM add the kernel module ipt_NETFLOW (the modules dependance tree need to be updated)
230
/sbin/depmod -a
229
/sbin/depmod -a
-
 
230
# fix some RPM versions
-
 
231
echo "/^kernel/" > /etc/urpmi/skip.list
-
 
232
echo "/^freeradius/" >> /etc/urpmi/skip.list
231
exit 0
233
exit 0