Subversion Repositories ALCASAR

Rev

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

Rev 2314 Rev 2324
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2314 2017-06-28 10:26:30Z richard $ 
2
#  $Id: alcasar.sh 2324 2017-07-10 10:18:59Z tom.houdayer $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1126... Line 1126...
1126
## - Paramètrage de la page d'authentification (intercept.php)			##
1126
## - Paramètrage de la page d'authentification (intercept.php)			##
1127
##################################################################################
1127
##################################################################################
1128
chilli ()
1128
chilli ()
1129
{
1129
{
1130
# chilli unit for systemd
1130
# chilli unit for systemd
1131
cat << EOF > /lib/systemd/system/chilli.service
1131
	cat << EOF > /lib/systemd/system/chilli.service
1132
#  This file is part of systemd.
1132
#  This file is part of systemd.
1133
#
1133
#
1134
#  systemd is free software; you can redistribute it and/or modify it
1134
#  systemd is free software; you can redistribute it and/or modify it
1135
#  under the terms of the GNU General Public License as published by
1135
#  under the terms of the GNU General Public License as published by
1136
#  the Free Software Foundation; either version 2 of the License, or
1136
#  the Free Software Foundation; either version 2 of the License, or
Line 1231... Line 1231...
1231
        echo "Usage: \$0 {start|stop|restart|reload|status}"
1231
        echo "Usage: \$0 {start|stop|restart|reload|status}"
1232
        exit 1
1232
        exit 1
1233
esac
1233
esac
1234
echo
1234
echo
1235
EOF
1235
EOF
1236
chmod a+x /etc/init.d/chilli
1236
	chmod a+x /etc/init.d/chilli
1237
ln -s /etc/init.d/chilli /usr/libexec/chilli
1237
	ln -s /etc/init.d/chilli /usr/libexec/chilli
-
 
1238
# HTTPS login
-
 
1239
	echo "HTTPS_LOGIN=on" >> $CONF_FILE
1238
# conf file creation
1240
# conf file creation
1239
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
1241
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
1240
	#NTP Option configuration for DHCP
1242
	#NTP Option configuration for DHCP
1241
	#DHCP Options : rfc2132
1243
	#DHCP Options : rfc2132
1242
		#dhcp option value will be convert in hexa.
1244
		#dhcp option value will be convert in hexa.