Skip to content

Commit 51583f5

Browse files
author
Philipp Heckel
committed
Attachments dir in package
1 parent c3170e1 commit 51583f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.goreleaser.yml

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ nfpms:
5959
dst: /lib/systemd/system/ntfy-client.service
6060
- dst: /var/cache/ntfy
6161
type: dir
62+
- dst: /var/cache/ntfy/attachments
63+
type: dir
6264
- dst: /usr/share/ntfy/logo.png
6365
src: server/static/img/ntfy.png
6466
scripts:

scripts/postinst.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ if [ "$1" = "configure" ] || [ "$1" -ge 1 ]; then
88
if [ -d /run/systemd/system ]; then
99
# Create ntfy user/group
1010
id ntfy >/dev/null 2>&1 || useradd --system --no-create-home ntfy
11-
chown ntfy.ntfy /var/cache/ntfy
12-
chmod 700 /var/cache/ntfy
11+
chown ntfy.ntfy /var/cache/ntfy /var/cache/ntfy/attachments
12+
chmod 700 /var/cache/ntfy /var/cache/ntfy/attachments
1313

1414
# Hack to change permissions on cache file
1515
configfile="/etc/ntfy/server.yml"

0 commit comments

Comments
 (0)