Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar-uninstall.sh 315 2010-11-12 11:32:47Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 346 2010-11-28 18:09:05Z 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 22... |
Line 22... |
22 |
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
|
22 |
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
|
23 |
rm -f /root/ALCASAR* && echo -n "1,"
|
23 |
rm -f /root/ALCASAR* && echo -n "1,"
|
24 |
sleep 1
|
24 |
sleep 1
|
25 |
|
25 |
|
26 |
# gestion
|
26 |
# gestion
|
27 |
echo -en "\n- gestion(7) : "
|
27 |
echo -en "\n- gestion(6) : "
|
28 |
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
|
28 |
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
|
29 |
[ -e /etc/httpd/conf/httpd.conf.default ] && mv /etc/httpd/conf/httpd.conf.default /etc/httpd/conf/httpd.conf && echo -n "2, "
|
29 |
[ -e /etc/httpd/conf/httpd.conf.default ] && mv /etc/httpd/conf/httpd.conf.default /etc/httpd/conf/httpd.conf && echo -n "2, "
|
30 |
[ -e /etc/php.ini.default ] && mv /etc/php.ini.default /etc/php.ini && echo -n "3, "
|
30 |
[ -e /etc/php.ini.default ] && mv /etc/php.ini.default /etc/php.ini && echo -n "3, "
|
31 |
[ -e /etc/httpd/conf/vhosts.default ] && FIC_VIRTUAL=`find /etc/httpd/conf -type f -name *default_vhosts*` && mv /etc/httpd/conf/vhosts.default $FIC_VIRTUAL && echo -n "4, "
|
- |
|
32 |
[ -e /etc/httpd/conf/vhosts-ssl.default ] && FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl*` && mv /etc/httpd/conf/vhosts-ssl.default $FIC_VIRTUAL_SSL && echo -n "5, "
|
31 |
[ -e /etc/httpd/conf/vhosts-ssl.default ] && FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl*` && mv /etc/httpd/conf/vhosts-ssl.default $FIC_VIRTUAL_SSL && echo -n "4, "
|
33 |
[ -e /etc/httpd/conf/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && echo -n "6, "
|
32 |
[ -e /etc/httpd/conf/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && echo -n "5, "
|
34 |
[ -e /var/www/error/include/bottom.html.default ] && mv /var/www/error/include/bottom.html.default /var/www/error/include/bottom.html && echo -n "7"
|
33 |
[ -e /var/www/error/include/bottom.html.default ] && mv /var/www/error/include/bottom.html.default /var/www/error/include/bottom.html && echo -n "6"
|
35 |
sleep 1
|
34 |
sleep 1
|
36 |
|
35 |
|
37 |
# CA
|
36 |
# CA
|
38 |
echo -en "\n- AC(4) : "
|
37 |
echo -en "\n- AC(4) : "
|
39 |
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "
|
38 |
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "
|
Line 68... |
Line 67... |
68 |
[ -e /etc/freeradius-web/naslist.conf ] && rm /etc/freeradius-web/naslist.conf && echo -n "2, "
|
67 |
[ -e /etc/freeradius-web/naslist.conf ] && rm /etc/freeradius-web/naslist.conf && echo -n "2, "
|
69 |
[ -e /etc/freeradius-web/user_edit.attrs.default ] && mv /etc/freeradius-web/user_edit.attrs.default /etc/freeradius-web/user_edit.attrs && echo -n "3"
|
68 |
[ -e /etc/freeradius-web/user_edit.attrs.default ] && mv /etc/freeradius-web/user_edit.attrs.default /etc/freeradius-web/user_edit.attrs && echo -n "3"
|
70 |
sleep 1
|
69 |
sleep 1
|
71 |
|
70 |
|
72 |
#param_chilli
|
71 |
#param_chilli
|
- |
|
72 |
if [ -e /etc/chilli.conf.default ] # >= V2.0
|
- |
|
73 |
then
|
73 |
echo -en "\n- param_chilli(5) : "
|
74 |
echo -en "\n- param_chilli (2) : "
|
- |
|
75 |
[ -e /etc/init.d/chilli.default ] && mv /etc/init.d/chilli.default /etc/init.d/chilli && echo -n "1, "
|
74 |
[ -e /etc/chilli/functions.default ] && mv /etc/chilli/functions.default /etc/chilli/functions && echo -n "1, "
|
76 |
[ -e /etc/chilli.conf.default ] && mv /etc/chilli.conf.default /etc/chilli.conf && echo -n "2"
|
- |
|
77 |
else # < V2.0
|
- |
|
78 |
echo -en "\n- param_chilli (6) : "
|
75 |
[ -e /etc/init.d/chilli.default ] && mv /etc/init.d/chilli.default /etc/init.d/chilli && echo -n "2, "
|
79 |
[ -e /etc/chilli/functions.default ] && mv /etc/chilli/functions.default /etc/chilli/functions && echo -n "1, "
|
76 |
[ -e /etc/chilli/config ] && rm /etc/chilli/config && echo -n "3, "
|
80 |
[ -e /etc/chilli/config ] && rm /etc/chilli/config && echo -n "2, "
|
77 |
[ -e /etc/chilli/alcasar-uamallowed ] && rm /etc/chilli/alcasar-uamallowed && echo -n "4, "
|
81 |
[ -e /etc/chilli/alcasar-uamallowed ] && rm /etc/chilli/alcasar-uamallowed && echo -n "3, "
|
78 |
[ -e /etc/chilli/alcasar-uamdomain ] && rm /etc/chilli/alcasar-uamdomain && echo -n "5"
|
82 |
[ -e /etc/chilli/alcasar-uamdomain ] && rm /etc/chilli/alcasar-uamdomain && echo -n "4, "
|
- |
|
83 |
[ -e /etc/chilli/alcasar-macallowed ] && rm /etc/chilli/alcasar-macallowed && echo -n "5, "
|
- |
|
84 |
[ -e /etc/init.d/chilli.default ] && mv /etc/init.d/chilli.default /etc/init.d/chilli && echo -n "6"
|
- |
|
85 |
fi
|
79 |
sleep 1
|
86 |
sleep 1
|
80 |
|
87 |
|
81 |
#param_squid
|
88 |
#param_squid
|
82 |
echo -en "\n- param_squid(2) : "
|
89 |
echo -en "\n- param_squid(2) : "
|
83 |
[ -e /etc/squid/squid.conf.default ] && mv /etc/squid/squid.conf.default /etc/squid/squid.conf && echo -n "1, "
|
90 |
[ -e /etc/squid/squid.conf.default ] && mv /etc/squid/squid.conf.default /etc/squid/squid.conf && echo -n "1, "
|