Subversion Repositories ALCASAR

Rev

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

Rev 1923 Rev 2192
Line 1... Line 1...
1
 
1
 
2
#!/bin/bash
2
#!/bin/bash
3
# $Id: alcasar-uninstall.sh 1923 2016-06-03 13:03:17Z franck $
3
# $Id: alcasar-uninstall.sh 2192 2017-05-01 19:52:53Z richard $
4
 
4
 
5
# alcasar-uninstall.sh
5
# alcasar-uninstall.sh
6
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 241... Line 241...
241
[ -e /etc/bashrc.default ] && mv /etc/bashrc.default /etc/bashrc && echo -n "4, "
241
[ -e /etc/bashrc.default ] && mv /etc/bashrc.default /etc/bashrc && echo -n "4, "
242
[ -e /etc/sudoers.default ] && mv /etc/sudoers.default /etc/sudoers && echo -n "5, "
242
[ -e /etc/sudoers.default ] && mv /etc/sudoers.default /etc/sudoers && echo -n "5, "
243
[ -e /lib/systemd/system/alcasar-load_balancing.service ] && rm -f /lib/systemd/system/alcasar-load_balancing.service && echo -n "6"
243
[ -e /lib/systemd/system/alcasar-load_balancing.service ] && rm -f /lib/systemd/system/alcasar-load_balancing.service && echo -n "6"
244
sleep 1
244
sleep 1
245
 
245
 
246
 
-
 
247
 
-
 
248
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)
246
# nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)
249
echo -en "\n- cleaning() : "
247
echo -en "\n- cleaning() : "
250
for rm_fic in /usr/local/bin /usr/local/etc /usr/local/sbin
248
for rm_fic in /usr/local/bin /usr/local/etc /usr/local/sbin
251
	do
249
	do
252
	rm -rf $rm_fic/alcasar*
250
	rm -rf $rm_fic/alcasar*
253
	done
251
	done