ajout debloque_salle.sh

This commit is contained in:
jbousquie 2016-11-30 11:43:36 +01:00
parent cc9284f2fa
commit 99cf65f963

View File

@ -0,0 +1,19 @@
#!/bin/bash
#
# Script de déblocage de salles.
# usage : débloque_salle a200 b300 a201
#
for arg in $*
do
if [ -f /var/lib/squidguard/salles/$arg ]
then
# echo > /var/lib/squidguard/db/salles/$arg
rm /var/lib/squidguard/db/salles/$arg
rm /var/www/salles/rep_salles/$arg
recharge=1
fi
done
if [ $recharge ]
then
/etc/init.d/squid3 reload
fi