Subversion Repositories ALCASAR

Rev

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

Rev 498 Rev 503
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 498 2011-02-24 20:56:27Z richard $
2
# $Id: alcasar-uninstall.sh 503 2011-03-11 22:12:32Z 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 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(4) : "
136
echo -en "\n- dnsmasq(3) : "
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
	[ -e /etc/dnsmasq-forward.conf ] && rm -f /etc/dnsmasq-forward.conf && echo -n "2, "
141
	[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d && echo -n "3, "
141
	[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d
142
	[ -e /etc/init.d/dnsmasq.default ] && mv /etc/init.d/dnsmasq.default /etc/init.d/dnsmasq && echo -n "4"
142
	[ -e /etc/init.d/dnsmasq.default ] && mv /etc/init.d/dnsmasq.default /etc/init.d/dnsmasq && echo -n "3"
143
else echo -n "non installé"
143
else echo -n "non installé"
144
fi
144
fi
145
sleep 1
145
sleep 1
146
 
146
 
147
#Bind
147
#Bind