ajout bloque_salle.sh
This commit is contained in:
parent
99cf65f963
commit
d81421a0ef
21
admin/scripts_distants/squid/bloque_salle.sh
Normal file
21
admin/scripts_distants/squid/bloque_salle.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Script de blocage de salles.
|
||||
# usage : bloque_salles a200 b300 a201
|
||||
#
|
||||
|
||||
for arg in $*
|
||||
do
|
||||
if [ -f /var/lib/squidguard/salles/$arg ]
|
||||
then
|
||||
cp /var/lib/squidguard/salles/$arg /var/lib/squidguard/db/salles/
|
||||
chown -R proxy: /var/lib/squidguard/db/salles
|
||||
touch /var/www/salles/rep_salles/$arg
|
||||
recharge=1
|
||||
fi
|
||||
done
|
||||
if [ $recharge ]
|
||||
then
|
||||
/etc/init.d/squid3 reload
|
||||
fi
|
||||
exit
|
Loading…
x
Reference in New Issue
Block a user