From a25a75473ccc6d2fb662c33fc1ea4efc76a8a567 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 23 Apr 2023 19:06:44 +0200 Subject: [PATCH] Update 99-run.sh --- photoprism/rootfs/etc/cont-init.d/99-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/photoprism/rootfs/etc/cont-init.d/99-run.sh b/photoprism/rootfs/etc/cont-init.d/99-run.sh index b98f7d606..218273973 100755 --- a/photoprism/rootfs/etc/cont-init.d/99-run.sh +++ b/photoprism/rootfs/etc/cont-init.d/99-run.sh @@ -95,6 +95,14 @@ for variabletest in $PHOTOPRISM_STORAGE_PATH $PHOTOPRISM_ORIGINALS_PATH $PHOTOPR touch "$variabletest"/aze && rm "$variabletest"/aze || bashio::log.fatal "$variabletest path is not writable" done +# Define id +if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then + PUID="$(bashio::config "PUID")" + PGID="$(bashio::config "PGID")" + export PHOTOPRISM_UID="$PUID" + export PHOTOPRISM_GID="$PGID" +fi + # Start messages bashio::log.info "Please wait 1 or 2 minutes to allow the server to load" bashio::log.info 'Default username : admin, default password: "please_change_password"'