/scripts/alcasar-daemon.sh |
---|
11,7 → 11,7 |
SSH=`grep ^SSH= $conf_file|cut -d"=" -f2` # sshd active (on/off) |
SSH=${SSH:=off} |
LDAP=`grep ^LDAP= $conf_file|cut -d"=" -f2` # ldap active (on/off) |
LDAP=${SSH:=off} |
LDAP=${LDAP:=off} |
SERVICES="mysqld lighttpd php-fpm ntpd havp dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd tinyproxy nfsen e2guardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban sshd vnstat" |
nb_available_srv=`echo $SERVICES|wc -w` |
/web/acc/manager/htdocs/autoregistration.php |
---|
345,7 → 345,7 |
if(isset($_POST['b_port'])){ |
echo "speed = ".$_POST['port']; |
$port = $_POST['port']; |
exec("sudo $script --replace_port $port"); |
exec("sudo $script --replace_port ".escapeshellarg($port)); |
header('Location: autoregistration.php'); |
exit(); |
} |