aboutsummaryrefslogtreecommitdiff
path: root/apks
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-20 14:21:51 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-20 14:21:51 +0200
commit88dc399dbb4d5359006c745d138e65183b818842 (patch)
treecb0925a2431f7c8c3e01042f20588fc93d4fb472 /apks
parent2c790028b42479059e79825050249ee5a57575e5 (diff)
downloadapkbuilds-88dc399dbb4d5359006c745d138e65183b818842.tar.gz
apkbuilds-88dc399dbb4d5359006c745d138e65183b818842.tar.bz2
apkbuilds-88dc399dbb4d5359006c745d138e65183b818842.zip
ref: Add option to change the user
Diffstat (limited to 'apks')
-rw-r--r--apks/photoview/APKBUILD2
-rw-r--r--apks/photoview/photoview.confd5
-rw-r--r--apks/photoview/photoview.initd2
3 files changed, 7 insertions, 2 deletions
diff --git a/apks/photoview/APKBUILD b/apks/photoview/APKBUILD
index a9c4fac..56eeb8b 100644
--- a/apks/photoview/APKBUILD
+++ b/apks/photoview/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Gabriel Giovanini <mail@gabrielgio.me>
pkgname=photoview
pkgver=2.3.13
-pkgrel=3
+pkgrel=4
pkgdesc="Photo gallery for self-hosted personal servers"
url="https://github.com/photoview/photoview"
arch="x86_64"
diff --git a/apks/photoview/photoview.confd b/apks/photoview/photoview.confd
index 0c90d9e..cb062b6 100644
--- a/apks/photoview/photoview.confd
+++ b/apks/photoview/photoview.confd
@@ -15,3 +15,8 @@ PHOTOVIEW_MEDIA_CACHE=/var/cache/photoview/media_cache
PHOTOVIEW_DISABLE_FACE_RECOGNITION=1
PHOTOVIEW_DISABLE_VIDEO_ENCODING=0
PHOTOVIEW_DISABLE_RAW_PROCESSING=0
+
+
+# comment this out for old style service management
+#supervisor=supervise-daemon
+#command_user=photoview:photoview
diff --git a/apks/photoview/photoview.initd b/apks/photoview/photoview.initd
index 04a799c..bbc3cda 100644
--- a/apks/photoview/photoview.initd
+++ b/apks/photoview/photoview.initd
@@ -3,7 +3,7 @@ supervisor=supervise-daemon
command="/usr/bin/photoview"
command_background="yes"
-command_user="photoview:photoview"
+: ${command_user:="photoview:photoview"}
# database
export PHOTOVIEW_DATABASE_DRIVER