Subversion Repositories ALCASAR

Rev

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

Rev 2202 Rev 2221
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 2202 2017-05-06 13:35:14Z richard $
2
# $Id: alcasar-urpmi.sh 2221 2017-05-13 13:47:30Z richard $
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
 
8
# script de mise en place des dépots RPM 
8
# script de mise en place des dépots RPM 
9
# configure the RPM repository
9
# configure the RPM repository
10
 
10
 
11
Lang=`echo $LANG|cut -c 1-2`
11
Lang=`echo $LANG|cut -c 1-2`
12
VERSION="5"
12
VERSION="5"
13
ARCH="i586" 
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.4.59-1.mga5-1-1.mga5"
15
KERNEL="kernel-server-4.4.59-1.mga5-1-1.mga5"
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 apache apache-mod_ssl apache-mod_php dansguardian 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 gammu usbutils locales-en usb_modeswitch tinyproxy vnstat php-gd sudo iftop man kernel-firmware-nonfree dos2unix p7zip bc msec"
17
PACKAGES="arp-scan vim-enhanced freeradius freeradius-mysql freeradius-ldap apache apache-mod_ssl apache-mod_php dansguardian 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 gammu usbutils locales-en usb_modeswitch tinyproxy vnstat php-gd sudo iftop man kernel-firmware-nonfree dos2unix p7zip bc msec"
18
 
18
 
Line 119... Line 119...
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
rm -f /etc/urpmi/skip.list
-
 
125
urpmi --auto --quiet $KERNEL
-
 
126
echo "/^kernel/" > /etc/urpmi/skip.list
124
echo "/^kernel/" > /etc/urpmi/skip.list
127
 
-
 
-
 
125
urpmi --auto --quiet $KERNEL
128
# download updated RPM in cache 
126
# download updated RPM in cache 
129
if [ $Lang == "fr" ]
127
if [ $Lang == "fr" ]
130
then	
128
then	
131
	echo "Récupération des paquetages de mise à jour. Veuillez patienter ..."
129
	echo "Récupération des paquetages de mise à jour. Veuillez patienter ..."
132
	echo "Il est temps d'aller prendre un café (ou une bonne bière) ;-)"
130
	echo "Il est temps d'aller prendre un café (ou une bonne bière) ;-)"