Subversion Repositories ALCASAR

Rev

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

Rev 1564 Rev 1567
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1564 2015-02-09 23:18:36Z richard $
2
# $Id: alcasar-conf.sh 1567 2015-02-11 23:11:33Z 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 146... Line 146...
146
		$DIR_SBIN/alcasar-profil.sh --list
146
		$DIR_SBIN/alcasar-profil.sh --list
147
# Start / Stop SSH Daemon
147
# Start / Stop SSH Daemon
148
		ssh_active=`grep SSH= $CONF_FILE|cut -d"=" -f2`
148
		ssh_active=`grep SSH= $CONF_FILE|cut -d"=" -f2`
149
		if [ $ssh_active = "on" ]
149
		if [ $ssh_active = "on" ]
150
		then
150
		then
151
			/sbin/chkconfig --add sshd
151
			systemctl -q enable sshd.service
152
		else
152
		else
153
			/sbin/chkconfig --del sshd
153
			systemctl -q disable sshd.service
154
		fi
154
		fi
155
# Remove the update folder
155
# Remove the update folder
156
		rm -rf $DIR_UPDATE
156
		rm -rf $DIR_UPDATE
157
		;;
157
		;;
158
	--apply|-apply)
158
	--apply|-apply)