From 99cf65f9634381bd0fc60f65f8f9e0db38fb3103 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Wed, 30 Nov 2016 11:43:36 +0100 Subject: [PATCH] ajout debloque_salle.sh --- .../scripts_distants/squid/debloque_salle.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 admin/scripts_distants/squid/debloque_salle.sh diff --git a/admin/scripts_distants/squid/debloque_salle.sh b/admin/scripts_distants/squid/debloque_salle.sh new file mode 100644 index 0000000..798e6d1 --- /dev/null +++ b/admin/scripts_distants/squid/debloque_salle.sh @@ -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