Subversion Repositories ALCASAR

Rev

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

Rev 92 Rev 109
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 92 2010-04-30 14:09:40Z richard $
2
# $Id: alcasar-uninstall.sh 109 2010-05-10 19:46:20Z 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 97... Line 97...
97
[ -e /etc/dansguardian/lists/exceptioniplist.default ] && mv /etc/dansguardian/lists/exceptioniplist.default /etc/dansguardian/lists/exceptioniplist && echo -n "8, "
97
[ -e /etc/dansguardian/lists/exceptioniplist.default ] && mv /etc/dansguardian/lists/exceptioniplist.default /etc/dansguardian/lists/exceptioniplist && echo -n "8, "
98
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "9, "
98
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "9, "
99
[ -d /etc/dansguardian/lists/blacklists.default ] && mv -f /etc/dansguardian/lists/blacklists.default /etc/dansguardian/lists/blacklists && echo -n "10"
99
[ -d /etc/dansguardian/lists/blacklists.default ] && mv -f /etc/dansguardian/lists/blacklists.default /etc/dansguardian/lists/blacklists && echo -n "10"
100
sleep 1
100
sleep 1
101
#antivirus
101
#antivirus
102
echo -en "\n-11 antivirus(6) : "
102
echo -en "\n-11 antivirus(5) : "
103
if [ -e /etc/init.d/havp ]
103
if [ -e /etc/init.d/havp ]
104
then
104
then
105
	chkconfig --del havp && echo -n "1, "
-
 
106
	umount /var/tmp/havp && echo -n "2, "
105
	umount /var/tmp/havp && echo -n "1, "
107
	sleep 1
106
	sleep 1
108
	rm -rf /var/tmp/havp /var/log/havp /var/run/havp /usr/local/etc/havp && echo -n "3, "
107
	rm -rf /var/tmp/havp && echo -n "2, "
109
	rm -f /tmp/havp-disk && echo -n "4, "
108
	rm -f /tmp/havp-disk && echo -n "3, "
110
	$SED "/^# Entry for havp/d" /etc/fstab
109
	$SED "/^# Entry for havp/d" /etc/fstab
111
	$SED "/^\/tmp\/havp-disk/d" /etc/fstab && echo -n "5, "
110
	$SED "/^\/tmp\/havp-disk/d" /etc/fstab && echo -n "4, "
-
 
111
	[ -e /etc/havp/havp.conf.default ] && mv /etc/havp/havp.conf.default /etc/havp/havp.conf && echo -n "5"
-
 
112
	if [ -e /usr/local/sbin/havp ] # on traite la version 1.9a
-
 
113
	then
-
 
114
		rm -rf /usr/local/etc/havp
-
 
115
		rm -rf /usr/local/sbin/havp
112
	userdel havp && echo -n "6"
116
		userdel -r havp
-
 
117
	fi
113
else	echo -n "non installé"
118
else	echo -n "non installé"
114
fi
119
fi
115
sleep 1
120
sleep 1
116
#firewall
121
#firewall
117
echo -en "\n-12 firewall(1) : "
122
echo -en "\n-12 firewall(1) : "