Subversion Repositories ALCASAR

Rev

Rev 146 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 146 Rev 226
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 146 2010-05-31 19:57:59Z franck $
2
# $Id: alcasar-uninstall.sh 226 2010-09-02 17:34:58Z franck $
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 124... Line 124...
124
sleep 1
124
sleep 1
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
#Bind
129
#DnsMasq
130
echo -en "\n-14 bind(4) : "
130
echo -en "\n-14 dnsmasq(4) : "
131
if [ -e /etc/init.d/named ]
131
if [ -e /etc/init.d/dnsmasq ]
132
then
132
then
133
	[ -e /var/lib/named/etc/named.conf.default ] && mv /var/lib/named/etc/named.conf.default /var/lib/named/etc/named.conf && echo -n "1, "
133
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
134
	[ -e /var/lib/named/etc/trusted_networks_acl.conf.default ] && mv /var/lib/named/etc/trusted_networks_acl.conf.default /var/lib/named/etc/trusted_networks_acl.conf && echo -n "2, "
-
 
135
	[ -e /var/lib/named/var/named/master/localdomain.zone.default ] && mv /var/lib/named/var/named/master/localdomain.zone.default /var/lib/named/var/named/master/localdomain.zone && echo -n "3, "
-
 
136
	[ -e /var/lib/named/var/named/reverse/localdomain.rev ] && rm /var/lib/named/var/named/reverse/localdomain.rev && echo -n "4"
134
	[ -d /etc/dnsmasq.d && rm -rf /etc/dnsmasq.d
137
else echo -n "non installé"
135
else echo -n "non installé"
138
fi
136
fi
139
sleep 1
137
sleep 1
-
 
138
#Bind
-
 
139
#echo -en "\n-14 bind(4) : "
-
 
140
#if [ -e /etc/init.d/named ]
-
 
141
#then
-
 
142
#	[ -e /var/lib/named/etc/named.conf.default ] && mv /var/lib/named/etc/named.conf.default /var/lib/named/etc/named.conf && echo -n "1, "
-
 
143
#	[ -e /var/lib/named/etc/trusted_networks_acl.conf.default ] && mv /var/lib/named/etc/trusted_networks_acl.conf.default /var/lib/named/etc/trusted_networks_acl.conf && echo -n "2, "
-
 
144
#	[ -e /var/lib/named/var/named/master/localdomain.zone.default ] && mv /var/lib/named/var/named/master/localdomain.zone.default /var/lib/named/var/named/master/localdomain.zone && echo -n "3, "
-
 
145
#	[ -e /var/lib/named/var/named/reverse/localdomain.rev ] && rm /var/lib/named/var/named/reverse/localdomain.rev && echo -n "4"
-
 
146
#else echo -n "non installé"
-
 
147
#fi
-
 
148
#sleep 1
140
#cron
149
#cron
141
echo -en "\n-15 cron(9) : "
150
echo -en "\n-15 cron(9) : "
142
[ -e /etc/crontab.default ] && mv /etc/crontab.default /etc/crontab && echo -n "1, "
151
[ -e /etc/crontab.default ] && mv /etc/crontab.default /etc/crontab && echo -n "1, "
143
[ -e /etc/anacrontab.default ] && mv /etc/anacrontab.default /etc/anacrontab && echo -n "2, "
152
[ -e /etc/anacrontab.default ] && mv /etc/anacrontab.default /etc/anacrontab && echo -n "2, "
144
[ -e /etc/cron.d/mysql ] && rm -f /etc/cron.d/mysql && echo -n "3, "
153
[ -e /etc/cron.d/mysql ] && rm -f /etc/cron.d/mysql && echo -n "3, "