Subversion Repositories ALCASAR

Rev

Rev 2568 | Rev 2570 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2568 Rev 2569
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2568 2018-07-12 21:49:03Z rexy $
2
# $Id: alcasar-conf.sh 2569 2018-07-14 09:17:12Z lucas.echard $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
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 273... Line 273...
273
 
273
 
274
# Logout everybody
274
# Logout everybody
275
			$DIR_BIN/alcasar-logout.sh all		
275
			$DIR_BIN/alcasar-logout.sh all		
276
# Services stop
276
# Services stop
277
			echo -n "Stop services : "
277
			echo -n "Stop services : "
278
			for i in ntpd tinyproxy dnsmasq dnsmasq-whitelist dnsmasq-blacklist dnsmasq-blackhole chilli network lighttpd
278
			for i in ntpd tinyproxy e2guardian dnsmasq dnsmasq-whitelist dnsmasq-blacklist dnsmasq-blackhole chilli network lighttpd
279
			do
279
			do
280
				/usr/bin/systemctl stop $i && echo -n "$i, "
280
				/usr/bin/systemctl stop $i && echo -n "$i, "
281
			done
281
			done
282
			echo
282
			echo
283
		fi
283
		fi
Line 395... Line 395...
395
			for i in dnsmasq dnsmasq-blackhole tinyproxy ntpd
395
			for i in dnsmasq dnsmasq-blackhole tinyproxy ntpd
396
			do
396
			do
397
				sleep 1
397
				sleep 1
398
				/usr/bin/systemctl start $i && echo -n ", $i"
398
				/usr/bin/systemctl start $i && echo -n ", $i"
399
			done
399
			done
400
			$DIR_BIN/alcasar-bl.sh -reload && echo -n ", dnsmasq-blacklist, dnsmasq-whitelist, iptables"
400
			$DIR_BIN/alcasar-bl.sh -reload && echo -n ", dnsmasq-blacklist, dnsmasq-whitelist, e2guardian, iptables"
401
			/usr/bin/systemctl restart lighttpd && echo -n ", lighttpd"
401
			/usr/bin/systemctl restart lighttpd && echo -n ", lighttpd"
402
		fi
402
		fi
403
# Start / Stop SSH Daemon
403
# Start / Stop SSH Daemon
404
		ssh_active=`grep ^SSH= $CONF_FILE|cut -d"=" -f2`
404
		ssh_active=`grep ^SSH= $CONF_FILE|cut -d"=" -f2`
405
		if [ $ssh_active = "on" ]
405
		if [ $ssh_active = "on" ]