|
@@ -6,7 +6,7 @@ set -e
|
|
|
#
|
|
#
|
|
|
# TODO: This is only tested on Debian.
|
|
# TODO: This is only tested on Debian.
|
|
|
#
|
|
#
|
|
|
-if [ "$1" = "configure" ] && [ -d /run/systemd/system ]; then
|
|
|
|
|
|
|
+if ( [ "$1" = "configure" ] || [ "$1" = "1" ] ) && [ -d /run/systemd/system ]; then
|
|
|
# Create ntfy user/group
|
|
# Create ntfy user/group
|
|
|
id ntfy >/dev/null 2>&1 || useradd --system --no-create-home ntfy
|
|
id ntfy >/dev/null 2>&1 || useradd --system --no-create-home ntfy
|
|
|
chown ntfy.ntfy /var/cache/ntfy
|
|
chown ntfy.ntfy /var/cache/ntfy
|