Subversion Repositories ALCASAR

Rev

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

Rev 2409 Rev 2454
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-https.sh 2409 2017-09-14 18:52:54Z tom.houdayer $
2
# $Id: alcasar-https.sh 2454 2017-12-09 18:59:31Z 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 26... Line 26...
26
case $args in
26
case $args in
27
	-\? | -h* | --h*)
27
	-\? | -h* | --h*)
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?^HTTPS_CHILLI=.*?HTTPS_CHILLI=off?" $CONF_FILE
34
		$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
35
		/usr/bin/systemctl restart chilli
35
		/usr/bin/systemctl restart chilli
36
		;;
36
		;;