Subversion Repositories ALCASAR

Rev

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

Rev 2688 Rev 2689
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 2688 2019-01-18 23:15:49Z lucas.echard $
2
# $Id: alcasar-uninstall.sh 2689 2019-01-20 10:50:15Z lucas.echard $
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 173... Line 173...
173
	[ -e /etc/unbound/unbound-whitelist.conf ] && rm -f /etc/unbound/unbound-whitelist.conf && echo -n "3, "
173
	[ -e /etc/unbound/unbound-whitelist.conf ] && rm -f /etc/unbound/unbound-whitelist.conf && echo -n "3, "
174
	[ -e /etc/unbound/unbound-blackhole.conf ] && rm -f /etc/unbound/unbound-blackhole.conf && echo -n "4, "
174
	[ -e /etc/unbound/unbound-blackhole.conf ] && rm -f /etc/unbound/unbound-blackhole.conf && echo -n "4, "
175
	[ -e /etc/unbound/conf.d ] && rm -rf /etc/unbound/conf.d && echo -n "5"
175
	[ -e /etc/unbound/conf.d ] && rm -rf /etc/unbound/conf.d && echo -n "5"
176
}
176
}
177
 
177
 
-
 
178
dhcpd ()
-
 
179
{
-
 
180
	echo -en "(1) : "
-
 
181
	[ -e /etc/dhcpd.conf.default ] && mv /etc/dhcpd.conf.default /etc/dhcpd.conf && echo -n "1"
-
 
182
}
-
 
183
 
178
cron ()
184
cron ()
179
{
185
{
180
	echo -en "(11) : "
186
	echo -en "(11) : "
181
	i=1
187
	i=1
182
	for cron in `ls /etc/cron.d/alcasar-* 2>/dev/null`
188
	for cron in `ls /etc/cron.d/alcasar-* 2>/dev/null`
Line 315... Line 321...
315
if [ $mode == "update" ] # reload sshd in case of remote update
321
if [ $mode == "update" ] # reload sshd in case of remote update
316
then
322
then
317
	/usr/bin/systemctl reload sshd
323
	/usr/bin/systemctl reload sshd
318
fi
324
fi
319
echo "Reset ALCASAR main functions : "
325
echo "Reset ALCASAR main functions : "
320
for func in init ACC CA time_server init_db freeradius chilli e2guardian antivirus tinyproxy ulogd nfsen vnstat unbound dnsmasq cron fail2ban gammu_smsd msec letsencrypt post_install
326
for func in init ACC CA time_server init_db freeradius chilli e2guardian antivirus tinyproxy ulogd nfsen vnstat unbound dnsmasq dhcpd cron fail2ban gammu_smsd msec letsencrypt post_install
321
do
327
do
322
	echo -en "\n- $func "
328
	echo -en "\n- $func "
323
	$func
329
	$func
324
	sleep 1
330
	sleep 1
325
	if [ $DEBUG_ALCASAR == "on" ]
331
	if [ $DEBUG_ALCASAR == "on" ]