Subversion Repositories ALCASAR

Rev

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

Rev 1546 Rev 1547
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1546 2014-12-23 17:13:54Z richard $
2
# $Id: alcasar-uninstall.sh 1547 2014-12-23 17:25:24Z richard $
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 103... Line 103...
103
[ -e /etc/dansguardian/lists/exceptioniplist.default ] && mv /etc/dansguardian/lists/exceptioniplist.default /etc/dansguardian/lists/exceptioniplist && echo -n "7, "
103
[ -e /etc/dansguardian/lists/exceptioniplist.default ] && mv /etc/dansguardian/lists/exceptioniplist.default /etc/dansguardian/lists/exceptioniplist && echo -n "7, "
104
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "8"
104
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "8"
105
sleep 1
105
sleep 1
106
 
106
 
107
#antivirus
107
#antivirus
108
echo -en "\n- antivirus(4) : "
108
echo -en "\n- antivirus(5) : "
109
if [ -e /etc/init.d/havp ] 
109
if [ -e /etc/init.d/havp ] 
110
	then
110
	then
111
	[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "1, "
111
	[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "1, "
112
	userdel -r havp 2>/dev/null && echo -n "2, "
112
	userdel -r havp 2>/dev/null && echo -n "2, "
113
	[ `grep havp /etc/fstab|wc -l` -ne "0" ] && $SED "/havp/d" /etc/fstab # anciennes versions (mémoire tampon sur disque)
113
	[ `grep havp /etc/fstab|wc -l` -ne "0" ] && $SED "/havp/d" /etc/fstab # anciennes versions (mémoire tampon sur disque)
114
	[ -e /etc/init.d/havp.default ] && mv /etc/init.d/havp.default /etc/init.d/havp && echo -n "3, "
114
	[ -e /etc/init.d/havp.default ] && mv /etc/init.d/havp.default /etc/init.d/havp && echo -n "3, "
-
 
115
	[ -e /lib/systemd/system/havp.service.default ] && mv /lib/systemd/system/havp.service.default /lib/systemd/system/havp.service && echo -n "4, "
115
	[ -e /etc/freshclam.conf.default ] && mv /etc/freshclam.conf.default /etc/freshclam.conf && echo -n "4"
116
	[ -e /etc/freshclam.conf.default ] && mv /etc/freshclam.conf.default /etc/freshclam.conf && echo -n "5"
116
else	echo -n "uninstalled"
117
else	echo -n "uninstalled"
117
fi
118
fi
118
sleep 1
119
sleep 1
119
 
120
 
120
#tinyproxy
121
#tinyproxy
Line 154... Line 155...
154
echo -en "\n- dnsmasq(9) : "
155
echo -en "\n- dnsmasq(9) : "
155
if [ -e /lib/systemd/system/dnsmasq.service ]
156
if [ -e /lib/systemd/system/dnsmasq.service ]
156
then
157
then
157
	[ -e /etc/sysconfig/dnsmasq.default ] && mv /etc/sysconfig/dnsmasq.default /etc/sysconfig/dnsmasq && echo -n "1, "
158
	[ -e /etc/sysconfig/dnsmasq.default ] && mv /etc/sysconfig/dnsmasq.default /etc/sysconfig/dnsmasq && echo -n "1, "
158
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "2, "
159
	[ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf && echo -n "2, "
159
	[ -e /lib/systemd/system/dnsmasq.service.old ] && mv /lib/systemd/system/dnsmasq.service.old /lib/systemd/system/dnsmasq.service && echo -n "3, "
160
	[ -e /lib/systemd/system/dnsmasq.service.default ] && mv /lib/systemd/system/dnsmasq.service.default /lib/systemd/system/dnsmasq.service && echo -n "3, "
160
	i=3
161
	i=3
161
	for list in blacklist whitelist blackhole
162
	for list in blacklist whitelist blackhole
162
	do
163
	do
163
		i=`expr $i + 1`
164
		i=`expr $i + 1`
164
		[ -e /etc/dnsmasq-$list.conf ] && rm /etc/dnsmasq-$list.conf && echo -n "$i, "
165
		[ -e /etc/dnsmasq-$list.conf ] && rm /etc/dnsmasq-$list.conf && echo -n "$i, "