Subversion Repositories ALCASAR

Rev

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

Rev 1358 Rev 1359
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1358 2014-05-23 12:26:25Z richard $
2
# $Id: alcasar-uninstall.sh 1359 2014-05-23 16:15:57Z richard $
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 31... Line 31...
31
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
31
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
32
rm -f /root/ALCASAR* && echo -n "1"
32
rm -f /root/ALCASAR* && echo -n "1"
33
sleep 1
33
sleep 1
34
 
34
 
35
# gestion
35
# gestion
36
echo -en "\n- gestion(7) : "
36
echo -en "\n- gestion(9) : "
37
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
37
[ -d /var/www/html ] && rm -rf /var/www/html && echo -n "1, "
38
[ -e /etc/httpd/conf/httpd.conf.default ] && mv /etc/httpd/conf/httpd.conf.default /etc/httpd/conf/httpd.conf && echo -n "2, "
38
[ -e /etc/httpd/conf/httpd.conf.default ] && mv /etc/httpd/conf/httpd.conf.default /etc/httpd/conf/httpd.conf && echo -n "2, "
39
[ -e /etc/php.ini.default ] && mv /etc/php.ini.default /etc/php.ini && echo -n "3, "
39
[ -e /etc/php.ini.default ] && mv /etc/php.ini.default /etc/php.ini && echo -n "3, "
40
[ -e /etc/httpd/conf/vhosts-ssl.default ] && FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl_vhost.conf` && mv /etc/httpd/conf/vhosts-ssl.default $FIC_VIRTUAL_SSL && echo -n "4, "
40
[ -e /etc/httpd/conf/vhosts-ssl.default ] && FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl_vhost.conf` && mv /etc/httpd/conf/vhosts-ssl.default $FIC_VIRTUAL_SSL && echo -n "4, "
41
if [ -d /usr/local/etc/digest ] # v >= 2.0
41
if [ -d /usr/local/etc/digest ] # v >= 2.0
42
	then rm -rf /usr/local/etc/digest && echo -n "5, "
42
	then rm -rf /usr/local/etc/digest && echo -n "5, "
43
	else echo -n "5, "
43
	else echo -n "5, "
44
fi
44
fi
45
[ -e /etc/httpd/conf/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && echo -n "6, "
45
[ -e /etc/httpd/conf/webapps.d/alcasar.conf ] && rm -f /etc/httpd/conf/webapps.d/alcasar.conf && echo -n "6, "
-
 
46
[ -e /etc/httpd/conf/conf.d/ssl.conf.default ] && mv /etc/httpd/conf/conf.d/ssl.conf.default /etc/httpd/conf/conf.d/ssl.conf && echo -n "7, "
-
 
47
[ -e /usr/share/httpd/error/include/top.html.default ] && mv /usr/share/httpd/error/include/top.html.default /usr/share/httpd/error/include/top.html && echo -n "8, "
46
[ -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"
48
[ -e /usr/share/httpd/error/include/bottom.html.default ] && mv /usr/share/httpd/error/include/bottom.html.default /usr/share/httpd/error/include/top.html && echo -n "9"
47
sleep 1
49
sleep 1
48
 
50
 
49
# CA
51
# CA
50
echo -en "\n- AC(4) : "
52
echo -en "\n- AC(4) : "
51
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "
53
[ -e /etc/pki/CA/alcasar-ca.crt ] && rm -f /etc/pki/CA/alcasar-ca.crt && echo -n "1, "