ajout debloque_salle.sh
This commit is contained in:
parent
cc9284f2fa
commit
99cf65f963
19
admin/scripts_distants/squid/debloque_salle.sh
Normal file
19
admin/scripts_distants/squid/debloque_salle.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user