Skip to content

Commit aacdda9

Browse files
author
Philipp Heckel
committed
chmod 600 for cache file
1 parent ee34770 commit aacdda9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/postinst.sh

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

0 commit comments

Comments
 (0)