From deb0219165c30f9e65492ebe1e2e9c321c705232 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Fri, 5 Aug 2022 21:59:52 -0400 Subject: [PATCH] specify binary path envs --- conf/systemd.service | 3 +++ scripts/_common.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 8557650..a57db16 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -11,6 +11,9 @@ ExecStart=__FINALPATH__/live/bin/photoprism --config-path __FINALPATH__/live/con StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit TimeoutSec=900 +Environment="PHOTOPRISM_HEIFCONVERT_BIN=__FINALPATH__/bin/heif-convert" +Environment="PHOTOPRISM_FFMPEG_BIN=/usr/bin/ffmpeg" +Environment="PHOTOPRISM_EXIFTOOL_BIN=/usr/bin/exiftool" # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these diff --git a/scripts/_common.sh b/scripts/_common.sh index 7c2281f..ccaab8e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ PHOTOPRISM_VERSION="220730-bullseye" #pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev" -pkg_dependencies="" +pkg_dependencies="ffmpeg libimage-exiftool-perl" #================================================= # PERSONAL HELPERS