Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-uninstall.sh 1185 2013-08-29 14:49:26Z crox53 $
|
2 |
# $Id: alcasar-uninstall.sh 1201 2013-09-02 07:48:07Z crox53 $
|
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 212... |
Line 212... |
212 |
[ -e /etc/logrotate.d/httpd ] && rm -f /etc/logrotate.d/httpd && echo -n "7, "
|
212 |
[ -e /etc/logrotate.d/httpd ] && rm -f /etc/logrotate.d/httpd && echo -n "7, "
|
213 |
[ -e /etc/logrotate.d/squid ] && rm -f /etc/logrotate.d/squid && echo -n "8, "
|
213 |
[ -e /etc/logrotate.d/squid ] && rm -f /etc/logrotate.d/squid && echo -n "8, "
|
214 |
[ -e /etc/logrotate.d/radiusd ] && rm -f /etc/logrotate.d/radiusd && echo -n "9, "
|
214 |
[ -e /etc/logrotate.d/radiusd ] && rm -f /etc/logrotate.d/radiusd && echo -n "9, "
|
215 |
[ -e /etc/logrotate.d/ulogd ] && rm -f /etc/logrotate.d/ulogd && echo -n "10, "
|
215 |
[ -e /etc/logrotate.d/ulogd ] && rm -f /etc/logrotate.d/ulogd && echo -n "10, "
|
216 |
[ -e /etc/logrotate.d/dnsmasq ] && rm -f /etc/logrotate.d/dnsmasq && echo -n "11"
|
216 |
[ -e /etc/logrotate.d/dnsmasq ] && rm -f /etc/logrotate.d/dnsmasq && echo -n "11"
|
217 |
[ -e /lib/systemd/system/alcasar-load_balancing.service ] &&/lib/systemd/system/alcasar-load_balancing.service rm -f && echo -n "12"
|
217 |
[ -e /lib/systemd/system/alcasar-load_balancing.service ] &&/lib/systemd/system/alcasar-load_balancing.service rm -f && echo -n " ,12"
|
218 |
sleep 1
|
218 |
sleep 1
|
219 |
|
219 |
|
220 |
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)
|
220 |
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)
|
221 |
echo -en "\n- cleaning() : "
|
221 |
echo -en "\n- cleaning() : "
|
222 |
for rm_fic in /usr/local/bin /usr/local/sbin /usr/local/etc
|
222 |
for rm_fic in /usr/local/bin /usr/local/sbin /usr/local/etc
|