Subversion Repositories ALCASAR

Rev

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

Rev 226 Rev 235
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 226 2010-09-02 17:34:58Z franck $
2
# $Id: alcasar-uninstall.sh 235 2010-09-12 21:38:51Z richard $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by 3abtux, angel95 and rexy
5
# by 3abtux, angel95 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
SED="/bin/sed -i"
7
SED="/bin/sed -i"
Line 9... Line 9...
9
echo "-----------------------------------------------------------------------------"
9
echo "-----------------------------------------------------------------------------"
10
echo "**                      Désinstallation d'ALCASAR                          **"
10
echo "**                      Désinstallation d'ALCASAR                          **"
11
echo "-----------------------------------------------------------------------------"
11
echo "-----------------------------------------------------------------------------"
12
echo
12
echo
13
#services_stop
13
#services_stop
14
for i in ntpd iptables ulogd dansguardian squid chilli httpd radiusd named freshclam havp dhcpd
14
for i in ntpd iptables ulogd dansguardian squid chilli httpd radiusd freshclam havp dnsmasq
15
do
15
do
16
	[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop
16
	[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop
17
done
17
done
18
echo "Réinitialisation des fonctions : "
18
echo "Réinitialisation des fonctions : "
19
#init
19
#init
Line 125... Line 125...
125
#awstats
125
#awstats
126
echo -en "\n-13 awstats(1) : "
126
echo -en "\n-13 awstats(1) : "
127
[ -e /etc/awstats/awstats.conf.default ] && mv /etc/awstats/awstats.conf.default /etc/awstats/awstats.conf && echo -n "1"
127
[ -e /etc/awstats/awstats.conf.default ] && mv /etc/awstats/awstats.conf.default /etc/awstats/awstats.conf && echo -n "1"
128
sleep 1
128
sleep 1
129
#DnsMasq
129
#DnsMasq
130
echo -en "\n-14 dnsmasq(4) : "
130
echo -en "\n-14 dnsmasq(2) : "
131
if [ -e /etc/init.d/dnsmasq ]
131
if [ -e /etc/init.d/dnsmasq ]
132
then
132
then
133
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
133
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
134
	[ -d /etc/dnsmasq.d && rm -rf /etc/dnsmasq.d
134
	[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d && echo "2"
135
else echo -n "non installé"
135
else echo -n "non installé"
136
fi
136
fi
137
sleep 1
137
sleep 1
138
#Bind
138
#Bind
139
#echo -en "\n-14 bind(4) : "
139
#echo -en "\n-14 bind(4) : "