From 88dc399dbb4d5359006c745d138e65183b818842 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sun, 20 Aug 2023 14:21:51 +0200 Subject: ref: Add option to change the user --- apks/photoview/APKBUILD | 2 +- apks/photoview/photoview.confd | 5 +++++ apks/photoview/photoview.initd | 2 +- 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 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 -- cgit v1.2.3