Subversion Repositories ALCASAR

Rev

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

Rev 604 Rev 607
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 604 2011-05-15 21:23:10Z richard $
2
# $Id: alcasar-uninstall.sh 607 2011-05-21 17:45:34Z 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
 
7
 
Line 23... Line 23...
23
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
23
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
24
rm -f /root/ALCASAR* && echo -n "1"
24
rm -f /root/ALCASAR* && echo -n "1"
25
sleep 1
25
sleep 1
26
 
26
 
27
# gestion
27
# gestion
28
echo -en "\n- gestion(6) : "
28
echo -en "\n- gestion(7) : "
29
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
29
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
30
[ -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/httpd/conf/httpd.conf.default ] && mv /etc/httpd/conf/httpd.conf.default /etc/httpd/conf/httpd.conf && echo -n "2, "
31
[ -e /etc/php.ini.default ] && mv /etc/php.ini.default /etc/php.ini && echo -n "3, "
31
[ -e /etc/php.ini.default ] && mv /etc/php.ini.default /etc/php.ini && echo -n "3, "
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 "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 "4, "
-
 
33
if [ -d /usr/local/etc/digest ] # v >= 2.0
-
 
34
	then rm -rf /usr/local/etc/digest && echo -n "5, "
-
 
35
	else echo -n "5, "
-
 
36
fi
33
[ -e /etc/httpd/conf/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && echo -n "5, "
37
[ -e /etc/httpd/conf/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && echo -n "6, "
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 "6"
38
[ -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"
35
sleep 1
39
sleep 1
36
 
40
 
37
# CA
41
# CA
38
echo -en "\n- AC(4) : "
42
echo -en "\n- AC(4) : "
39
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "
43
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "