mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-12 23:53:19 +02:00
Fix #47 issue with 1.5.2
This commit is contained in:
parent
1f60791bad
commit
b950e9da95
2 changed files with 10 additions and 10 deletions
scripts
|
@ -15,7 +15,7 @@ if [ "$1" = "configure" ] && [ -d /run/systemd/system ]; then
|
|||
# Hack to change permissions on cache file
|
||||
configfile="/etc/ntfy/config.yml"
|
||||
if [ -f "$configfile" ]; then
|
||||
cachefile="$(cat "$configfile" | perl -n -e'/^\s*cache-file: (.+)/ && print $1')"
|
||||
cachefile="$(cat "$configfile" | perl -n -e'/^\s*cache-file: ["'"'"']?([^"'"'"']+)["'"'"']?/ && print $1')" # Oh my, see #47
|
||||
if [ -n "$cachefile" ]; then
|
||||
chown ntfy.ntfy "$cachefile" || true
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue