Subversion Repositories ALCASAR

Rev

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

Rev 1062 Rev 1065
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1062 2013-04-01 21:20:12Z richard $
2
# $Id: alcasar-conf.sh 1065 2013-04-06 08:50:26Z richard $
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 277... Line 277...
277
		&& chown root.root /etc/sysconfig/dnsmasq \
277
		&& chown root.root /etc/sysconfig/dnsmasq \
278
		&& chmod 644 /etc/sysconfig/dnsmasq
278
		&& chmod 644 /etc/sysconfig/dnsmasq
279
# admin profile update (admin + manager + backup)
279
# admin profile update (admin + manager + backup)
280
		$DIR_SBIN/alcasar-profil.sh --list
280
		$DIR_SBIN/alcasar-profil.sh --list
281
# Start / Stop SSH Daemon
281
# Start / Stop SSH Daemon
282
		ssh_active=`grep SSH $CONF_FILE|cut -d"=" -f2`
282
		ssh_active=`grep SSH= $CONF_FILE|cut -d"=" -f2`
283
		if [ $ssh_active = "on" ]
283
		if [ $ssh_active = "on" ]
284
		then
284
		then
285
			/sbin/chkconfig --add sshd
285
			/sbin/chkconfig --add sshd
286
		else
286
		else
287
			/sbin/chkconfig --del sshd
287
			/sbin/chkconfig --del sshd
Line 420... Line 420...
420
			done
420
			done
421
# Reload BL (restart DG, dnsmasq & iptables)
421
# Reload BL (restart DG, dnsmasq & iptables)
422
			$DIR_SBIN/alcasar-bl.sh -reload
422
			$DIR_SBIN/alcasar-bl.sh -reload
423
		fi
423
		fi
424
# Start / Stop SSH Daemon
424
# Start / Stop SSH Daemon
425
		ssh_active=`grep SSH $CONF_FILE|cut -d"=" -f2`
425
		ssh_active=`grep SSH= $CONF_FILE|cut -d"=" -f2`
426
		if [ $ssh_active = "on" ]
426
		if [ $ssh_active = "on" ]
427
		then
427
		then
428
			/bin/systemctl enable sshd.service
428
			/bin/systemctl enable sshd.service
429
			if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
429
			if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
430
			then
430
			then