Subversion Repositories ALCASAR

Rev

Rev 1157 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1157 Rev 1159
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1157 2013-07-16 10:48:11Z stephane $
2
# $Id: alcasar-uninstall.sh 1159 2013-07-17 09:25:15Z crox53 $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT 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 13... Line 13...
13
echo "-----------------------------------------------------------------------------"
13
echo "-----------------------------------------------------------------------------"
14
echo "**                     Uninstall/Update ALCASAR                            **"
14
echo "**                     Uninstall/Update ALCASAR                            **"
15
echo "-----------------------------------------------------------------------------"
15
echo "-----------------------------------------------------------------------------"
16
echo
16
echo
17
#services_stop
17
#services_stop
18
for i in squid ntpd iptables ulogd dansguardian chilli httpd radiusd freshclam havp dnsmasq mysqld named dhcpd
18
for i in squid ntpd iptables ulogd dansguardian chilli httpd radiusd freshclam havp dnsmasq mysqld named dhcpd nfsen
19
do
19
do
20
	[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop && killall $i 2>/dev/null
20
	[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop && killall $i 2>/dev/null
21
done
21
done
22
echo "Stop ALCASAR main functions : "
22
echo "Stop ALCASAR main functions : "
23
 
23
 
Line 223... Line 223...
223
	rm -rf $rm_fic/alcasar*
223
	rm -rf $rm_fic/alcasar*
224
	done
224
	done
225
echo
225
echo
226
 
226
 
227
# suppression des exceptions de mises à jours ( coova-chilli et freeradius)
227
# suppression des exceptions de mises à jours ( coova-chilli et freeradius)
228
sed -i '/coova.*/d' /etc/urpmi/skip.list
-
 
229
 
228
sed -i '/coova.*/d' /etc/urpmi/skip.list
-
 
229