Subversion Repositories ALCASAR

Rev

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

Rev 1366 Rev 1369
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1366 2014-05-29 09:21:47Z richard $
2
# $Id: alcasar-uninstall.sh 1369 2014-06-03 16:23:07Z 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 143... Line 143...
143
fi
143
fi
144
sleep 1
144
sleep 1
145
 
145
 
146
#nfsen
146
#nfsen
147
echo -en "\n- nfsen(2) : "
147
echo -en "\n- nfsen(2) : "
148
	[ `grep "^nfsen:" /etc/passwd | wc -l` == 1 ] && userdel -r nfsen && echo -n "1, " 
148
	[ `grep "^nfsen:" /etc/passwd | wc -l` == 1 ] && userdel -r nfsen 2>/dev/null && echo -n "1, " 
149
	[ `grep "^www-data:" /etc/group | wc -l` == 1 ] && userdel -r www-data 2>/dev/null && groupdel www-data 2>/dev/null && echo -n "2"
149
	[ `grep "^www-data:" /etc/group | wc -l` == 1 ] && userdel -r www-data 2>/dev/null && groupdel www-data 2>/dev/null && echo -n "2"
150
 
150
 
151
# We keep netflow RRD DB for the moment  
151
# We keep netflow RRD DB for the moment  
152
#[ -d /var/log/netflow ] && rm -rf /var/log/netflow && echo -n "3"
152
#[ -d /var/log/netflow ] && rm -rf /var/log/netflow && echo -n "3"
153
sleep 1
153
sleep 1