Subversion Repositories ALCASAR

Rev

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

Rev 1758 Rev 1759
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1758 2016-01-13 22:27:27Z richard $
2
# $Id: alcasar-conf.sh 1759 2016-01-13 22:53:30Z 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 150... Line 150...
150
			/usr/bin/systemctl -q disable sshd.service
150
			/usr/bin/systemctl -q disable sshd.service
151
		fi
151
		fi
152
# modifications added with this version (2.9.2)
152
# modifications added with this version (2.9.2)
153
		# add "HOSTNAME=" in alcasar.conf
153
		# add "HOSTNAME=" in alcasar.conf
154
		hostname_defined=`grep ^HOSTNAME= $CONF_FILE|wc -l`
154
		hostname_defined=`grep ^HOSTNAME= $CONF_FILE|wc -l`
155
		if [ $hostname_define = "0" ]
155
		if [ $hostname_defined = "0" ]
156
		then
156
		then
157
			$SED "/^DOMAIN=/iHOSTNAME=alcasar" $CONF_FILE
157
			$SED "/^DOMAIN=/iHOSTNAME=alcasar" $CONF_FILE
158
		fi
158
		fi
159
# Remove the update folder
159
# Remove the update folder
160
		rm -rf $DIR_UPDATE
160
		rm -rf $DIR_UPDATE