Subversion Repositories ALCASAR

Rev

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

Rev 490 Rev 498
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 490 2011-02-13 20:26:03Z richard $
2
# $Id: alcasar-uninstall.sh 498 2011-02-24 20:56:27Z 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 18... Line 18...
18
echo "Réinitialisation des fonctions : "
18
echo "Réinitialisation des fonctions : "
19
 
19
 
20
#init
20
#init
21
echo -en "\n- init(1) : "
21
echo -en "\n- init(1) : "
22
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
22
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
23
rm -f /root/ALCASAR* && echo -n "1,"
23
rm -f /root/ALCASAR* && echo -n "1"
24
sleep 1
24
sleep 1
25
 
25
 
26
# gestion
26
# gestion
27
echo -en "\n- gestion(6) : "
27
echo -en "\n- gestion(6) : "
28
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
28
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
Line 131... Line 131...
131
echo -en "\n- awstats(1) : "
131
echo -en "\n- awstats(1) : "
132
[ -e /etc/awstats/awstats.conf.default ] && mv /etc/awstats/awstats.conf.default /etc/awstats/awstats.conf && echo -n "1"
132
[ -e /etc/awstats/awstats.conf.default ] && mv /etc/awstats/awstats.conf.default /etc/awstats/awstats.conf && echo -n "1"
133
sleep 1
133
sleep 1
134
 
134
 
135
#DnsMasq
135
#DnsMasq
136
echo -en "\n- dnsmasq(2) : "
136
echo -en "\n- dnsmasq(4) : "
137
if [ -e /etc/init.d/dnsmasq ]
137
if [ -e /etc/init.d/dnsmasq ]
138
then
138
then
139
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
139
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
-
 
140
	[ -e /etc/dnsmasq-forward.conf ] && rm -f /etc/dnsmasq-forward.conf && echo -n "2, "
140
	[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d && echo -n "2"
141
	[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d && echo -n "3, "
-
 
142
	[ -e /etc/init.d/dnsmasq.default ] && mv /etc/init.d/dnsmasq.default /etc/init.d/dnsmasq && echo -n "4"
141
else echo -n "non installé"
143
else echo -n "non installé"
142
fi
144
fi
143
sleep 1
145
sleep 1
144
 
146
 
145
#Bind
147
#Bind