Subversion Repositories ALCASAR

Rev

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

Rev 2758 Rev 2764
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 2758 2019-11-03 23:17:20Z rexy $
2
# $Id: alcasar-uninstall.sh 2764 2019-11-11 23:07:44Z rexy $
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 289... Line 289...
289
if [ $mode == "full" ]
289
if [ $mode == "full" ]
290
then
290
then
291
	echo "----------------------------------------------------------------------------"
291
	echo "----------------------------------------------------------------------------"
292
	echo "**                     Uninstall/Désinstallation d'ALCASAR		**"
292
	echo "**                     Uninstall/Désinstallation d'ALCASAR		**"
293
	echo "----------------------------------------------------------------------------"
293
	echo "----------------------------------------------------------------------------"
294
	services="alcasar-load_balancing vnstat havp freshclam ntpd php-fpm lighttpd radiusd mysqld unbound unbound-blacklist unbound-whitelist dnsmasq-whitelist unbound-blackhole tinyproxy nfsen fail2ban iptables ulogd-ext-access ulogd-ssh ulogd-traceability e2guardian sshd chilli"
294
	services="alcasar-load_balancing vnstat havp clamav-freshclam ntpd php-fpm lighttpd radiusd mysqld unbound unbound-blacklist unbound-whitelist dnsmasq-whitelist unbound-blackhole tinyproxy nfsen fail2ban iptables ulogd-ext-access ulogd-ssh ulogd-traceability e2guardian sshd chilli"
295
	/usr/local/bin/alcasar-logout.sh all # logout everybody
295
	/usr/local/bin/alcasar-logout.sh all # logout everybody
296
else
296
else
297
	echo "--------------------------------------------------------------------------"
297
	echo "--------------------------------------------------------------------------"
298
	echo "**                     update/mise à jour d'ALCASAR			**"
298
	echo "**                     update/mise à jour d'ALCASAR			**"
299
	echo "--------------------------------------------------------------------------"
299
	echo "--------------------------------------------------------------------------"
300
	# unbound, iptables & sshd should stay on to allow remote update
300
	# unbound, iptables & sshd should stay on to allow remote update
301
	services="alcasar-load_balancing vnstat havp freshclam ntpd php-fpm lighttpd radiusd mysqld unbound-blacklist unbound-whitelist dnsmasq-whitelist unbound-blackhole tinyproxy nfsen fail2ban ulogd-ext-access ulogd-ssh ulogd-traceability e2guardian chilli"
301
	services="alcasar-load_balancing vnstat havp clamav-freshclam ntpd php-fpm lighttpd radiusd mysqld unbound-blacklist unbound-whitelist dnsmasq-whitelist unbound-blackhole tinyproxy nfsen fail2ban ulogd-ext-access ulogd-ssh ulogd-traceability e2guardian chilli"
302
	/usr/local/bin/alcasar-bypass.sh -on # to allow remote update
302
	/usr/local/bin/alcasar-bypass.sh -on # to allow remote update
303
fi
303
fi
304
old_services=" dnsmasq dnsmasq-blacklist dnsmasq-blackhole"
304
old_services=" dnsmasq dnsmasq-blacklist dnsmasq-blackhole"
305
services+=$old_services
305
services+=$old_services
306
 
306