Subversion Repositories ALCASAR

Rev

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

Rev 2467 Rev 2470
Line 43... Line 43...
43
		if [ -e /etc/raddb/sites-enabled/alcasar ]
43
		if [ -e /etc/raddb/sites-enabled/alcasar ]
44
		then
44
		then
45
			rm /etc/raddb/sites-enabled/alcasar
45
			rm /etc/raddb/sites-enabled/alcasar
46
		fi
46
		fi
47
		ln -s /etc/raddb/sites-available/alcasar-with-ldap /etc/raddb/sites-enabled/alcasar
47
		ln -s /etc/raddb/sites-available/alcasar-with-ldap /etc/raddb/sites-enabled/alcasar
48
		/usr/local/bin/alcasar-iptables.sh
-
 
49
		/usr/bin/systemctl restart radiusd.service
48
		/usr/bin/systemctl restart radiusd.service
50
		;;
49
		;;
51
	--off | -off)
50
	--off | -off)
52
		$SED "s/^LDAP=.*/LDAP=off/g" $CONF_FILE
51
		$SED "s/^LDAP=.*/LDAP=off/g" $CONF_FILE
53
		rm -f /etc/raddb/mods-enabled/ldap
52
		rm -f /etc/raddb/mods-enabled/ldap
54
		if [ -e /etc/raddb/sites-enabled/alcasar ]
53
		if [ -e /etc/raddb/sites-enabled/alcasar ]
55
		then
54
		then
56
			rm /etc/raddb/sites-enabled/alcasar
55
			rm /etc/raddb/sites-enabled/alcasar
57
		fi
56
		fi
58
		ln -s /etc/raddb/sites-available/alcasar /etc/raddb/sites-enabled/alcasar
57
		ln -s /etc/raddb/sites-available/alcasar /etc/raddb/sites-enabled/alcasar
59
		/usr/local/bin/alcasar-iptables.sh
-
 
60
		/usr/bin/systemctl restart radiusd.service
58
		/usr/bin/systemctl restart radiusd.service
61
;;
59
;;
62
	*)
60
	*)
63
		echo "Argument inconnu :$1";
61
		echo "Argument inconnu :$1";
64
		echo "$usage"
62
		echo "$usage"