Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-uninstall.sh 672 2011-07-08 15:34:22Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 785 2011-12-23 17:23:17Z franck $
|
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 143... |
Line 143... |
143 |
then
|
143 |
then
|
144 |
[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
|
144 |
[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "1, "
|
145 |
[ -e /etc/dnsmasq-blackhole.conf ] && rm -f /etc/dnsmasq-blackhole.conf && echo -n "2, "
|
145 |
[ -e /etc/dnsmasq-blackhole.conf ] && rm -f /etc/dnsmasq-blackhole.conf && echo -n "2, "
|
146 |
[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d
|
146 |
[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d
|
147 |
[ -e /etc/init.d/dnsmasq.default ] && mv /etc/init.d/dnsmasq.default /etc/init.d/dnsmasq && echo -n "3"
|
147 |
[ -e /etc/init.d/dnsmasq.default ] && mv /etc/init.d/dnsmasq.default /etc/init.d/dnsmasq && echo -n "3"
|
- |
|
148 |
[ -e /etc/sysconfig/dnsmasq.default ] && mv /etc/sysconfig/dnsmasq.default /etc/sysconfig/dnsmasq && echo -n "4"
|
148 |
else echo -n "uninstalled"
|
149 |
else echo -n "uninstalled"
|
149 |
fi
|
150 |
fi
|
150 |
sleep 1
|
151 |
sleep 1
|
151 |
|
152 |
|
152 |
#Bind
|
153 |
#Bind
|
Line 206... |
Line 207... |
206 |
[ -e /etc/logrotate.d/mysqld ] && rm -f /etc/logrotate.d/mysqld && echo -n "6, "
|
207 |
[ -e /etc/logrotate.d/mysqld ] && rm -f /etc/logrotate.d/mysqld && echo -n "6, "
|
207 |
[ -e /etc/logrotate.d/httpd ] && rm -f /etc/logrotate.d/httpd && echo -n "7, "
|
208 |
[ -e /etc/logrotate.d/httpd ] && rm -f /etc/logrotate.d/httpd && echo -n "7, "
|
208 |
[ -e /etc/logrotate.d/squid ] && rm -f /etc/logrotate.d/squid && echo -n "8, "
|
209 |
[ -e /etc/logrotate.d/squid ] && rm -f /etc/logrotate.d/squid && echo -n "8, "
|
209 |
[ -e /etc/logrotate.d/radiusd ] && rm -f /etc/logrotate.d/radiusd && echo -n "9, "
|
210 |
[ -e /etc/logrotate.d/radiusd ] && rm -f /etc/logrotate.d/radiusd && echo -n "9, "
|
210 |
[ -e /etc/logrotate.d/ulogd ] && rm -f /etc/logrotate.d/ulogd && echo -n "10"
|
211 |
[ -e /etc/logrotate.d/ulogd ] && rm -f /etc/logrotate.d/ulogd && echo -n "10"
|
- |
|
212 |
[ -e /etc/logrotate.d/dnsmasq ] && rm -f /etc/logrotate.d/dnsmasq && echo -n "11"
|
211 |
sleep 1
|
213 |
sleep 1
|
212 |
|
214 |
|
213 |
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)
|
215 |
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)
|
214 |
echo -en "\n- cleaning() : "
|
216 |
echo -en "\n- cleaning() : "
|
215 |
for rm_fic in /usr/local/bin /usr/local/sbin /usr/local/etc
|
217 |
for rm_fic in /usr/local/bin /usr/local/sbin /usr/local/etc
|