Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-urpmi.sh 1388 2014-06-15 14:47:10Z richard $
|
2 |
# $Id: alcasar-urpmi.sh 1397 2014-06-24 15:12:57Z 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="4"
|
12 |
VERSION="4"
|
13 |
ARCH="i586"
|
13 |
ARCH="i586"
|
14 |
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
|
14 |
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
|
15 |
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-mysqli php-mbstring php-sockets rng-utils dnsmasq rsync clamav perl-rrdtool perl-MailTools perl-Socket6 fail2ban gnupg ulogd dkms-ipt_NETFLOW iptables-NETFLOW pm-fallback-policy ipset cronie-anacron gammu usbutils locales-en usb_modeswitch"
|
15 |
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-mysqli php-mbstring php-sockets php-cli php-curl php-pdo_sqlite php-json rng-utils dnsmasq rsync clamav perl-rrdtool perl-MailTools perl-Socket6 fail2ban gnupg ulogd dkms-ipt_NETFLOW iptables-NETFLOW pm-fallback-policy ipset cronie-anacron gammu usbutils locales-en usb_modeswitch"
|
16 |
|
16 |
|
17 |
rpm_repository_sync ()
|
17 |
rpm_repository_sync ()
|
18 |
{
|
18 |
{
|
19 |
cat <<EOF > /etc/urpmi/urpmi.cfg
|
19 |
cat <<EOF > /etc/urpmi/urpmi.cfg
|
20 |
{
|
20 |
{
|