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 |
|