summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-09-10 15:28:48 +0000
committerViacheslav <v.gletenko@vyos.io>2021-09-10 15:28:48 +0000
commitc3e585ebd53a9e61303ffd7c13289ce328badb3d (patch)
treeba4c6485497025c81a539709042940012dd7563f /src
parent9d209cbf7318e4658b2a8ba39a3dd064ea629109 (diff)
downloadvyos-1x-c3e585ebd53a9e61303ffd7c13289ce328badb3d.tar.gz
vyos-1x-c3e585ebd53a9e61303ffd7c13289ce328badb3d.zip
squidguard: T3810: Set DB directory rigths 755
Diffstat (limited to 'src')
-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