Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-uninstall.sh 2870 2020-10-27 23:16:41Z rexy $
|
2 |
# $Id: alcasar-uninstall.sh 2887 2020-11-26 22:08:42Z 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 |
echo -en "(9) : "
|
25 |
echo -en "(10) : "
|
26 |
[ -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, "
|
27 |
[ -d /etc/freeradius-web ] && rm -rf /etc/freeradius-web && echo -n "2, "
|
27 |
[ -d /etc/freeradius-web ] && rm -rf /etc/freeradius-web && echo -n "2, "
|
- |
|
28 |
[ -e /etc/php.d/05_date.ini.default ] && mv -f /etc/php.d/05_date.ini.default /etc/php.d/05_date.ini && echo -n "3, "
|
28 |
[ -e /etc/php.ini.default ] && mv -f /etc/php.ini.default /etc/php.ini && echo -n "3, "
|
29 |
[ -e /etc/php.ini.default ] && mv -f /etc/php.ini.default /etc/php.ini && echo -n "4, "
|
29 |
[ -e /etc/lighttpd/lighttpd.conf.default ] && mv -f /etc/lighttpd/lighttpd.conf.default /etc/lighttpd/lighttpd.conf && echo -n "4, "
|
30 |
[ -e /etc/lighttpd/lighttpd.conf.default ] && mv -f /etc/lighttpd/lighttpd.conf.default /etc/lighttpd/lighttpd.conf && echo -n "5, "
|
30 |
[ -e /etc/lighttpd/modules.conf.default ] && mv -f /etc/lighttpd/modules.conf.default /etc/lighttpd/modules.conf && echo -n "5, "
|
31 |
[ -e /etc/lighttpd/modules.conf.default ] && mv -f /etc/lighttpd/modules.conf.default /etc/lighttpd/modules.conf && echo -n "6, "
|
31 |
[ -e /etc/lighttpd/conf.d/fastcgi.conf.default ] && mv -f /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 -f /etc/lighttpd/conf.d/fastcgi.conf.default /etc/lighttpd/conf.d/fastcgi.conf && echo -n "7, "
|
32 |
[ -e /etc/php-fpm.conf.default ] && mv -f /etc/php-fpm.conf.default /etc/php-fpm.conf && echo -n "7, "
|
33 |
[ -e /etc/php-fpm.conf.default ] && mv -f /etc/php-fpm.conf.default /etc/php-fpm.conf && echo -n "8, "
|
33 |
[ -d /etc/lighttpd/vhosts.d ] && rm -rf /etc/lighttpd/vhosts.d && echo -n "8, "
|
34 |
[ -d /etc/lighttpd/vhosts.d ] && rm -rf /etc/lighttpd/vhosts.d && echo -n "9, "
|
34 |
[ -d /usr/local/etc/digest ] && rm -rf /usr/local/etc/digest && echo -n "9"
|
35 |
[ -d /usr/local/etc/digest ] && rm -rf /usr/local/etc/digest && echo -n "10"
|
35 |
}
|
36 |
}
|
36 |
|
37 |
|
37 |
CA ()
|
38 |
CA ()
|
38 |
{
|
39 |
{
|
39 |
echo -en "(5) : "
|
40 |
echo -en "(5) : "
|