Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar-uninstall.sh 294 2010-10-05 22:01:03Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 303 2010-10-09 16:41:23Z 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 script /usr/local/bin alcasar* sont supprimés à la fin car encore utiles ici
|
22 |
#les script /usr/local/bin alcasar* sont 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(5) : "
|
27 |
echo -en "\n- gestion(7) : "
|
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/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && 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 /var/www/error/include/bottom.html.default ] && mv /var/www/error/include/bottom.html.default /var/www/error/include/bottom.html && 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 |
sleep 1
|
35 |
sleep 1
|
34 |
|
36 |
|
35 |
# CA
|
37 |
# CA
|
36 |
echo -en "\n- AC(4) : "
|
38 |
echo -en "\n- AC(4) : "
|
37 |
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "
|
39 |
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "
|