Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-uninstall.sh 2541 2018-05-03 22:16:31Z rexy $
|
2 |
# $Id: alcasar-uninstall.sh 2560 2018-06-10 21:04:56Z rexy $
|
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 20... |
Line 20... |
20 |
[ -e /root/grub.default ] && mv -f /root/grub.default /etc/grub.d/10_linux && echo -n "3"
|
20 |
[ -e /root/grub.default ] && mv -f /root/grub.default /etc/grub.d/10_linux && echo -n "3"
|
21 |
}
|
21 |
}
|
22 |
|
22 |
|
23 |
ACC ()
|
23 |
ACC ()
|
24 |
{
|
24 |
{
|
25 |
if [ -d /etc/httpd ] ; then # Removing old Apache configuration
|
- |
|
26 |
echo -en "(1) : "
|
25 |
echo -en "(8) : "
|
27 |
rm -rf /etc/httpd/ && echo -n "1"
|
- |
|
28 |
else
|
- |
|
29 |
echo -en "(7) : "
|
- |
|
30 |
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
|
26 |
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
|
31 |
[ -d /etc/freeradius-web ] && rm -rf /etc/freeradius-webl && echo -n "2, "
|
27 |
[ -d /etc/freeradius-web ] && rm -rf /etc/freeradius-webl && echo -n "2, "
|
32 |
[ -e /etc/php.ini.default ] && mv -f /etc/php.ini.default /etc/php.ini && echo -n "3, "
|
28 |
[ -e /etc/php.ini.default ] && mv -f /etc/php.ini.default /etc/php.ini && echo -n "3, "
|
- |
|
29 |
[ -d /usr/local/etc/digest ] && rm -rf /usr/local/etc/digest && echo -n "4, "
|
33 |
[ -e /etc/lighttpd/lighttpd.conf.default ] && mv /etc/lighttpd/lighttpd.conf.default /etc/lighttpd/lighttpd.conf && echo -n "4, "
|
30 |
[ -e /etc/lighttpd/lighttpd.conf.default ] && mv /etc/lighttpd/lighttpd.conf.default /etc/lighttpd/lighttpd.conf && echo -n "5, "
|
34 |
[ -e /etc/lighttpd/modules.conf.default ] && mv /etc/lighttpd/modules.conf.default /etc/lighttpd/modules.conf && echo -n "5, "
|
31 |
[ -e /etc/lighttpd/modules.conf.default ] && mv /etc/lighttpd/modules.conf.default /etc/lighttpd/modules.conf && echo -n "6, "
|
35 |
[ -e /etc/lighttpd/conf.d/fastcgi.conf.default ] && mv /etc/lighttpd/conf.d/fastcgi.conf.default /etc/lighttpd/conf.d/fastcgi.conf && echo -n "6, "
|
32 |
[ -e /etc/lighttpd/conf.d/fastcgi.conf.default ] && mv /etc/lighttpd/conf.d/fastcgi.conf.default /etc/lighttpd/conf.d/fastcgi.conf && echo -n "7, "
|
36 |
[ -d /usr/local/etc/digest ] && rm -rf /usr/local/etc/digest && echo -n "7, "
|
- |
|
37 |
[ -e /etc/lighttpd/vhosts.d/alcasar.conf ] && rm -f /etc/lighttpd/vhosts.d/alcasar.conf && echo -n "8"
|
33 |
[ -e /etc/lighttpd/vhosts.d/alcasar.conf ] && rm -f /etc/lighttpd/vhosts.d/alcasar.conf && echo -n "8"
|
38 |
fi
|
- |
|
39 |
}
|
34 |
}
|
40 |
|
35 |
|
41 |
CA ()
|
36 |
CA ()
|
42 |
{
|
37 |
{
|
43 |
echo -en "(5) : "
|
38 |
echo -en "(5) : "
|
Line 94... |
Line 89... |
94 |
[ -e /lib/systemd/system/chilli.service ] && rm /lib/systemd/system/chilli.service && echo -n "4"
|
89 |
[ -e /lib/systemd/system/chilli.service ] && rm /lib/systemd/system/chilli.service && echo -n "4"
|
95 |
}
|
90 |
}
|
96 |
|
91 |
|
97 |
e2guardian ()
|
92 |
e2guardian ()
|
98 |
{
|
93 |
{
|
99 |
if [ -d /etc/dansguardian ] ; then # Removing old Dansguardian
|
- |
|
100 |
echo -en "(1) : "
|
- |
|
101 |
rm -rf /etc/dansguardian/ && echo -n "1"
|
- |
|
102 |
else
|
- |
|
103 |
echo -en "(8) : "
|
94 |
echo -en "(8) : "
|
104 |
[ -d /var/e2guardian ] && rm -rf /var/e2guardian && echo -n "1, "
|
95 |
[ -d /var/e2guardian ] && rm -rf /var/e2guardian && echo -n "1, "
|
105 |
[ -e /etc/e2guardian/e2guardian.conf.default ] && mv /etc/e2guardian/e2guardian.conf.default /etc/e2guardian/e2guardian.conf && echo -n "2, "
|
96 |
[ -e /etc/e2guardian/e2guardian.conf.default ] && mv /etc/e2guardian/e2guardian.conf.default /etc/e2guardian/e2guardian.conf && echo -n "2, "
|
106 |
[ -e /etc/e2guardian/lists/bannedphraselist.default ] && mv /etc/e2guardian/lists/bannedphraselist.default /etc/e2guardian/lists/bannedphraselist && echo -n "3, "
|
97 |
[ -e /etc/e2guardian/lists/bannedphraselist.default ] && mv /etc/e2guardian/lists/bannedphraselist.default /etc/e2guardian/lists/bannedphraselist && echo -n "3, "
|
107 |
[ -e /etc/e2guardian/e2guardianf1.conf.default ] && mv /etc/e2guardian/e2guardianf1.conf.default /etc/e2guardian/e2guardianf1.conf && echo -n "4, "
|
98 |
[ -e /etc/e2guardian/e2guardianf1.conf.default ] && mv /etc/e2guardian/e2guardianf1.conf.default /etc/e2guardian/e2guardianf1.conf && echo -n "4, "
|
108 |
[ -e /etc/e2guardian/lists/bannedextensionlist.default ] && mv /etc/e2guardian/lists/bannedextensionlist.default /etc/e2guardian/lists/bannedextensionlist && echo -n "5, "
|
99 |
[ -e /etc/e2guardian/lists/bannedextensionlist.default ] && mv /etc/e2guardian/lists/bannedextensionlist.default /etc/e2guardian/lists/bannedextensionlist && echo -n "5, "
|
109 |
[ -e /etc/e2guardian/lists/bannedmimetypelist.default ] && mv /etc/e2guardian/lists/bannedmimetypelist.default /etc/e2guardian/lists/bannedmimetypelist && echo -n "6, "
|
100 |
[ -e /etc/e2guardian/lists/bannedmimetypelist.default ] && mv /etc/e2guardian/lists/bannedmimetypelist.default /etc/e2guardian/lists/bannedmimetypelist && echo -n "6, "
|
110 |
[ -e /etc/e2guardian/lists/exceptioniplist.default ] && mv /etc/e2guardian/lists/exceptioniplist.default /etc/e2guardian/lists/exceptioniplist && echo -n "7, "
|
101 |
[ -e /etc/e2guardian/lists/exceptioniplist.default ] && mv /etc/e2guardian/lists/exceptioniplist.default /etc/e2guardian/lists/exceptioniplist && echo -n "7, "
|
111 |
[ -e /etc/e2guardian/lists/bannedsitelist.default ] && mv /etc/e2guardian/lists/bannedsitelist.default /etc/e2guardian/lists/bannedsitelist && echo -n "8"
|
102 |
[ -e /etc/e2guardian/lists/bannedsitelist.default ] && mv /etc/e2guardian/lists/bannedsitelist.default /etc/e2guardian/lists/bannedsitelist && echo -n "8"
|
112 |
fi
|
- |
|
113 |
}
|
103 |
}
|
114 |
|
104 |
|
115 |
antivirus ()
|
105 |
antivirus ()
|
116 |
{
|
106 |
{
|
117 |
echo -en "(5) : "
|
107 |
echo -en "(5) : "
|