Subversion Repositories ALCASAR

Rev

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

Rev 2324 Rev 2409
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-https.sh 2324 2017-07-10 10:18:59Z tom.houdayer $
2
# $Id: alcasar-https.sh 2409 2017-09-14 18:52:54Z tom.houdayer $
3
 
3
 
4
# alcasar-dhcp.sh
4
# alcasar-dhcp.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 28... Line 28...
28
		echo "$usage"
28
		echo "$usage"
29
		exit 0
29
		exit 0
30
		;;
30
		;;
31
	--off | -off)	# disable HTTPS 
31
	--off | -off)	# disable HTTPS 
32
		$SED "s?^HTTPS_LOGIN=.*?HTTPS_LOGIN=off?" $CONF_FILE
32
		$SED "s?^HTTPS_LOGIN=.*?HTTPS_LOGIN=off?" $CONF_FILE
-
 
33
		$SED "s?^HTTPS_CHILLI=.*?HTTPS_CHILLI=off?" $CONF_FILE
33
		$SED "s?uamserver.*?uamserver\thttp://$HOSTNAME.$DOMAIN/intercept.php?" $CHILLI_CONF_FILE
34
		$SED "s?uamserver.*?uamserver\thttp://$HOSTNAME.$DOMAIN/intercept.php?" $CHILLI_CONF_FILE
34
		/usr/bin/systemctl restart chilli
35
		/usr/bin/systemctl restart chilli
35
		;;
36
		;;
36
	--on | -on)	# enable HTTPS
37
	--on | -on)	# enable HTTPS
37
		$SED "s?^HTTPS_LOGIN=.*?HTTPS_LOGIN=on?" $CONF_FILE
38
		$SED "s?^HTTPS_LOGIN=.*?HTTPS_LOGIN=on?" $CONF_FILE