Explorar o código

chmod 600 for cache file

Philipp Heckel %!s(int64=4) %!d(string=hai) anos
pai
achega
aacdda94e1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scripts/postinst.sh

+ 1 - 0
scripts/postinst.sh

@@ -18,6 +18,7 @@ if [ "$1" = "configure" ] && [ -d /run/systemd/system ]; then
     cachefile="$(cat "$configfile" | perl -n -e'/^\s*cache-file: ["'"'"']?([^"'"'"']+)["'"'"']?/ && print $1')" # Oh my, see #47
     if [ -n "$cachefile" ]; then
       chown ntfy.ntfy "$cachefile" || true
+      chmod 600 "$cachefile" || true
     fi
   fi