Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-urpmi.sh 2821 2020-05-22 17:47:43Z rexy $
|
2 |
# $Id: alcasar-urpmi.sh 2824 2020-05-30 17:39:20Z 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="7"
|
12 |
VERSION="7"
|
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-5.6.8-1.mga7-1-1.mga7"
|
15 |
KERNEL="kernel-server-5.6.14-2.mga7-1-1.mga7"
|
16 |
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
|
16 |
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
|
17 |
# (old) perl-Socket6 : needed by nfsen
|
17 |
# (old) perl-Socket6 : needed by nfsen
|
18 |
# "fonts-dejavu-common" & "fonts-ttf-dejavu" : fonts needed by wkhtmltopdf
|
18 |
# "fonts-dejavu-common" & "fonts-ttf-dejavu" : fonts needed by wkhtmltopdf
|
19 |
# "lsscsi" & nvme-cli" : needed by phpsysinfo
|
19 |
# "lsscsi" & nvme-cli" : needed by phpsysinfo
|
20 |
PACKAGES="vim-enhanced freeradius freeradius-mysql freeradius-ldap lighttpd lighttpd-mod_auth php-fpm php-gd php-ldap php-mysqli php-mbstring php-sockets php-curl php-pdo_sqlite php-cli php-rrd unbound e2guardian postfix mariadb ntp bind-utils openssh-server rng-utils rsync clamav fail2ban gnupg2 ulogd pm-fallback-policy ipset usb_modeswitch tinyproxy vnstat dos2unix p7zip msec kernel-userspace-headers kernel-firmware-nonfree dnsmasq dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli"
|
20 |
PACKAGES="vim-enhanced freeradius freeradius-mysql freeradius-ldap lighttpd lighttpd-mod_auth php-fpm php-gd php-ldap php-mysqli php-mbstring php-sockets php-curl php-pdo_sqlite php-cli php-rrd unbound e2guardian postfix mariadb ntp bind-utils openssh-server rng-utils rsync clamav fail2ban gnupg2 ulogd pm-fallback-policy ipset usb_modeswitch tinyproxy vnstat dos2unix p7zip msec kernel-userspace-headers kernel-firmware-nonfree dnsmasq dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli"
|
Line 73... |
Line 73... |
73 |
|
73 |
|
74 |
# Set the RPM repository (if not already set)
|
74 |
# Set the RPM repository (if not already set)
|
75 |
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
|
75 |
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
|
76 |
MIRROR_NBR=2
|
76 |
MIRROR_NBR=2
|
77 |
# For Europeans
|
77 |
# For Europeans
|
78 |
MIRRORLIST1="https://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"
|
78 |
MIRRORLIST1="https://www.mirrorservice.org/pub/mageia/distrib/$VERSION/$ARCH"
|
79 |
# For International install
|
79 |
# For International install
|
80 |
MIRRORLIST2="https://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
|
80 |
MIRRORLIST2="https://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
|
81 |
try_nb="0"; nb_repository="0"
|
81 |
try_nb="0"; nb_repository="0"
|
82 |
while [ "$nb_repository" != "4" ]
|
82 |
while [ "$nb_repository" != "4" ]
|
83 |
do
|
83 |
do
|