summaryrefslogtreecommitdiff
path: root/src/conf_mode/service_webproxy.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-10 20:31:57 +0200
committerGitHub <noreply@github.com>2021-09-10 20:31:57 +0200
commitf2ea6a57b0876ee164d617ca4f54b37afa80f221 (patch)
tree5fb62c49be34e389e963b803a14ca29027be9c59 /src/conf_mode/service_webproxy.py
parente626407f4c246941eb2ca1b167a4b594b7bf6461 (diff)
parentf36fe0fbd65f4992c867873698b921745bfc8f91 (diff)
downloadvyos-1x-f2ea6a57b0876ee164d617ca4f54b37afa80f221.tar.gz
vyos-1x-f2ea6a57b0876ee164d617ca4f54b37afa80f221.zip
Merge pull request #1000 from sever-sever/T3810
squid: squidguard: T3810: Fix template for sourcre-group and rule
Diffstat (limited to 'src/conf_mode/service_webproxy.py')
-rwxr-xr-xsrc/conf_mode/service_webproxy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/service_webproxy.py b/src/conf_mode/service_webproxy.py
index cbbd2e0bc..a16cc4aeb 100755
--- a/src/conf_mode/service_webproxy.py
+++ b/src/conf_mode/service_webproxy.py
@@ -23,6 +23,7 @@ from vyos.config import Config
from vyos.configdict import dict_merge
from vyos.template import render
from vyos.util import call
+from vyos.util import chmod_755
from vyos.util import dict_search
from vyos.util import write_file
from vyos.validate import is_addr_assigned
@@ -192,6 +193,8 @@ def apply(proxy):
return None
+ if os.path.exists(squidguard_db_dir):
+ chmod_755(squidguard_db_dir)
call('systemctl restart squid.service')
return None