Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 1670 → Rev 1668

/scripts/sbin/alcasar-uninstall.sh
21,7 → 21,7
 
for i in alcasar-load_balancing havp freshclam ntpd dansguardian httpd radiusd mysqld dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole tinyproxy nfsen chilli fail2ban iptables ulogd-ext-access ulogd-ssh ulogd-traceability vnstat
do
[ -e /lib/systemd/system/$i.service ] && /usr/bin/systemctl disable $i.service && /usr/bin/systemctl stop $i.service 1>/dev/null
[ -e /lib/systemd/system/$i.service ] && /usr/bin/systemctl stop $i.service && /usr/bin/systemctl disable $i.service 1>/dev/null
done
 
echo "Reset ALCASAR main functions : "
/scripts/alcasar-sms.sh
35,7 → 35,6
script="/usr/local/bin/alcasar-sms.sh"
public_page="/var/www/html/autoregistrationinfo.php"
index_page="/var/www/html/index.php"
intercept_page="/var/www/html/intercept.php"
separator="########## START ##########"
end="%%%%%%%%%% STOP %%%%%%%%%%"
 
252,7 → 251,8
d_exp=$(date --date "$date_expiration" +%s)
d_scr=$(date --date "$date_script" +%s)
 
if test $d_scr -ge $d_exp # Si le ban à expiré
 
if test $d_scr -gt $d_exp # Si le ban à expiré
then
 
# Test sur le nombre de mots (resultat)
343,7 → 343,6
start_gammu
sed -i "s/\$service_SMS_status=\"false\";/\$service_SMS_status=\"true\";/g" $index_page
sed -i "s/\$service_SMS_status=false;/\$service_SMS_status=true;/g" $public_page
sed -i "s/\$service_SMS_status=false;/\$service_SMS_status=true;/g" $intercept_page
fi
exit 0
;;
354,7 → 353,6
stop_gammu
sed -i "s/\$service_SMS_status=\"true\";/\$service_SMS_status=\"false\";/g" $index_page
sed -i "s/\$service_SMS_status=true;/\$service_SMS_status=false;/g" $public_page
sed -i "s/\$service_SMS_status=true;/\$service_SMS_status=false;/g" $intercept_page
else
echo "gammu is already stopped"
fi