Subversion Repositories ALCASAR

Rev

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

Rev 2592 Rev 2879
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-https.sh 2592 2018-08-18 22:09:42Z rexy $
2
# $Id: alcasar-https.sh 2879 2020-11-02 22:27:16Z rexy $
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 39... Line 39...
39
		ln -s /etc/lighttpd/vhosts.d/alcasar-without-ssl.conf /etc/lighttpd/vhosts.d/alcasar.conf
39
		ln -s /etc/lighttpd/vhosts.d/alcasar-without-ssl.conf /etc/lighttpd/vhosts.d/alcasar.conf
40
		/usr/bin/systemctl restart lighttpd
40
		/usr/bin/systemctl restart lighttpd
41
		;;
41
		;;
42
	--on | -on)	# enable HTTPS
42
	--on | -on)	# enable HTTPS
43
		$SED "s?^HTTPS_LOGIN=.*?HTTPS_LOGIN=on?" $CONF_FILE
43
		$SED "s?^HTTPS_LOGIN=.*?HTTPS_LOGIN=on?" $CONF_FILE
-
 
44
		$SED "s?^HTTPS_CHILLI=.*?HTTPS_CHILLI=on?" $CONF_FILE
44
		$SED "s?^uamserver.*?uamserver\thttps://$HOSTNAME.$DOMAIN/intercept.php?" $CHILLI_CONF_FILE
45
		$SED "s?^uamserver.*?uamserver\thttps://$HOSTNAME.$DOMAIN/intercept.php?" $CHILLI_CONF_FILE
45
		$SED "s?^#redirssl.*?redirssl?" $CHILLI_CONF_FILE
46
		$SED "s?^#redirssl.*?redirssl?" $CHILLI_CONF_FILE
46
		$SED "s?^#uamuissl.*?uamuissl?" $CHILLI_CONF_FILE
47
		$SED "s?^#uamuissl.*?uamuissl?" $CHILLI_CONF_FILE
47
		/usr/bin/systemctl restart chilli
48
		/usr/bin/systemctl restart chilli
48
		rm -f /etc/lighttpd/vhosts.d/alcasar.conf
49
		rm -f /etc/lighttpd/vhosts.d/alcasar.conf