Subversion Repositories ALCASAR

Rev

Rev 1938 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1938 Rev 1943
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1938 2016-06-12 15:12:06Z richard $
2
# $Id: alcasar-urpmi.sh 1943 2016-06-13 22:20:13Z 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
 
Line 10... Line 10...
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="i586" 
14
# The kernel version we compile netflow for
14
# The kernel version we compile netflow for
15
KERNEL="kernel-server-4.1.15-2.mga5-1-1.mga5"
15
KERNEL="kernel-server-4.4.13-1.mga5-1-1.mga5"
16
ModuleTree="kernel-server-4.1.15-2.mga5"
-
 
17
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
16
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
18
PACKAGES="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-mysql 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"
17
PACKAGES="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-mysql 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"
19
 
18
 
20
rpm_repository_sync ()
19
rpm_repository_sync ()
21
{
20
{
Line 63... Line 62...
63
	fi
62
	fi
64
done
63
done
65
IFS="$old"
64
IFS="$old"
66
 
65
 
67
# We prefer wget than curl
66
# We prefer wget than curl
68
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
67
urpmi --no-verify-rpm --auto rpms/$ARCH/wget*.rpm
69
 
68
 
70
# Set the RPM repository (if not already set)
69
# Set the RPM repository (if not already set)
71
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
70
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
72
#if [ "$ACTIVE_REPO" != "2" ]
71
#if [ "$ACTIVE_REPO" != "2" ]
73
#	then
72
#	then
Line 121... Line 120...
121
then	
120
then	
122
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
121
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
123
else
122
else
124
	echo "Download the Linux kernel used by ALCASAR. Please wait ..."
123
	echo "Download the Linux kernel used by ALCASAR. Please wait ..."
125
fi
124
fi
-
 
125
rm -f /etc/urpmi/skip.list
126
urpmi --auto --quiet $KERNEL
126
urpmi --auto --quiet $KERNEL
127
echo "/^kernel/" > /etc/urpmi/skip.list
127
echo "/^kernel/" > /etc/urpmi/skip.list
128
 
128
 
129
# download updated RPM in cache 
129
# download updated RPM in cache 
130
if [ $Lang == "fr" ]
130
if [ $Lang == "fr" ]