Subversion Repositories ALCASAR

Rev

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

Rev 2867 Rev 2868
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 2867 2020-10-24 14:33:04Z rexy $
2
# $Id: alcasar-urpmi.sh 2868 2020-10-26 21:22:24Z 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 15... Line 15...
15
KERNEL="kernel-server-5.7.19-3.mga7-1-1.mga7"
15
KERNEL="kernel-server-5.7.19-3.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
# "socat" : avoid a warning when run the install script of letsencrypt ("acme.sh")
20
# "sudo" : needed after a reinstallation (to be investigated)
21
# "sudo" : needed after a reinstallation (to be investigated)
21
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 clamd fail2ban gnupg2 ulogd pm-fallback-policy ipset usb_modeswitch vnstat dos2unix p7zip msec kernel-userspace-headers kernel-firmware-nonfree dnsmasq dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli sudo"
22
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 clamd fail2ban gnupg2 ulogd pm-fallback-policy ipset usb_modeswitch vnstat dos2unix p7zip msec kernel-userspace-headers kernel-firmware-nonfree dnsmasq dhcp-server tcpdump fonts-dejavu-common fonts-ttf-dejavu lsscsi nvme-cli sudo socat"
22
 
23
 
23
rpm_repository_sync ()
24
rpm_repository_sync ()
24
{
25
{
25
cat <<EOF > /etc/urpmi/urpmi.cfg
26
cat <<EOF > /etc/urpmi/urpmi.cfg
26
{
27
{
Line 115... Line 116...
115
		then
116
		then
116
			exit 1
117
			exit 1
117
		fi
118
		fi
118
	fi
119
	fi
119
done
120
done
120
# fix some RPM versions
-
 
121
echo "/^kernel/" > /etc/urpmi/skip.list
-
 
122
echo "/^freeradius/" >> /etc/urpmi/skip.list
-
 
123
echo "/^wkhtmltopdf/" >> /etc/urpmi/skip.list
-
 
124
echo "/^clamd/" >> /etc/urpmi/skip.list
-
 
125
echo "/^clamav/" >> /etc/urpmi/skip.list
-
 
126
# download the kernel used by ALCASAR
121
# download the kernel used by ALCASAR
127
if [ $Lang == "fr" ]
122
if [ $Lang == "fr" ]
128
then
123
then
129
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
124
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
130
else
125
else
Line 267... Line 262...
267
done
262
done
268
if [ $count_pkg -ne $nb_pkg ]
263
if [ $count_pkg -ne $nb_pkg ]
269
then
264
then
270
	exit 1
265
	exit 1
271
fi
266
fi
-
 
267
# fix some RPM versions
-
 
268
echo "/^kernel/" > /etc/urpmi/skip.list
-
 
269
echo "/^freeradius/" >> /etc/urpmi/skip.list
-
 
270
echo "/^wkhtmltopdf/" >> /etc/urpmi/skip.list
-
 
271
echo "/^clamd/" >> /etc/urpmi/skip.list
-
 
272
echo "/^clamav/" >> /etc/urpmi/skip.list
272
exit 0
273
exit 0