Subversion Repositories ALCASAR

Rev

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

Rev 958 Rev 972
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 958 2012-07-19 09:01:30Z franck $
2
# $Id: alcasar-urpmi.sh 972 2012-08-13 19:49:27Z richard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by Franck BOUIJOUX and Richard REY
5
# by Franck BOUIJOUX and Richard REY
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 156... Line 156...
156
# delete old alcasar RPMs
156
# delete old alcasar RPMs
157
for rm_rpm in c-icap-server lib64chilli0 libchilli0 python-coova-chilli
157
for rm_rpm in c-icap-server lib64chilli0 libchilli0 python-coova-chilli
158
do
158
do
159
	/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null
159
	/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null
160
done
160
done
161
# On installe les RPMs spécifiques à la version
161
# Save chilli launch script (erase with new rpm one)
-
 
162
cp /etc/chilli.conf /tmp/
-
 
163
# Install home made RPMs
162
urpmi --no-verify --auto conf/rpms/$ARCH/*.rpm
164
urpmi --no-verify --auto conf/rpms/$ARCH/*.rpm
-
 
165
# restore chilli launch script
-
 
166
mv -f /tmp/chilli.conf /etc/
163
# On empêche les mises à jour de coova-chilli et freeradius par le biais des dépôts
167
# Don't upgrade coova-chilli and freeradius via repository
164
for rpmskip in coova-chilli freeradius 
168
for rpmskip in coova-chilli freeradius 
165
do
169
do
166
	echo -n "/^$rpmskip/" >> /etc/urpmi/skip.list
170
	echo -n "/^$rpmskip/" >> /etc/urpmi/skip.list
167
done
171
done
168
# Clean the RPM cache
172
# Clean the RPM cache