summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Fischl <github@fischl-online.de>2023-12-18 07:20:50 +0100
committerYixun Lan <dlan@gentoo.org>2023-12-21 14:57:53 +0000
commitad588e6d6d9030bf6ce56e3383d5658580834e2b (patch)
tree7d9909f20dacb46dd2975f40035f5c84888eaf03 /www-apps/nextcloud-notify_push/files
parentx11-misc/xkeyboard-config: restrict <pycountry-23.12.7 (diff)
downloadgentoo-ad588e6d6d9030bf6ce56e3383d5658580834e2b.tar.gz
gentoo-ad588e6d6d9030bf6ce56e3383d5658580834e2b.tar.bz2
gentoo-ad588e6d6d9030bf6ce56e3383d5658580834e2b.zip
www-apps/nextcloud-notify_push: add 0.6.6
Closes: https://bugs.gentoo.org/892077 Signed-off-by: Anton Fischl <github@fischl-online.de> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'www-apps/nextcloud-notify_push/files')
-rw-r--r--www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service-r120
-rw-r--r--www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service.conf4
2 files changed, 24 insertions, 0 deletions
diff --git a/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service-r1 b/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service-r1
new file mode 100644
index 000000000000..804d3b5034f6
--- /dev/null
+++ b/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service-r1
@@ -0,0 +1,20 @@
+[Unit]
+Description=Push daemon for Nextcloud clients
+After=mysqld.service
+After=redis.service
+
+[Service]
+Type=simple
+Environment=NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE=
+EnvironmentFile=-/etc/systemd/system/nextcloud-notify_push.d/00gentoo.conf
+ExecStart=/usr/bin/nextcloud-notify_push $NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE
+Restart=on-failure
+
+# Adjust user/group to match Nextcloud configuration.
+# E.g. make sure that User is able to access NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE
+# when used; make sure that webserver is in Group when using sockets
+User=nobody
+Group=nobody
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service.conf b/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service.conf
new file mode 100644
index 000000000000..ef1bd1571ff7
--- /dev/null
+++ b/www-apps/nextcloud-notify_push/files/nextcloud-notify_push.service.conf
@@ -0,0 +1,4 @@
+# Nextcloud config file
+# Set this to the Nextcloud configuration file this
+# instance is used for.
+NOTIFY_PUSH_NEXTCLOUD_CONFIGFILE="/path/to/your/nextcloud/config.php"