From ea8b80507543ba614cfe4468100329ca23052aca Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 6 Feb 2025 09:44:57 +0100 Subject: [PATCH] align to www-data --- fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh index b281e30e3..46d04f139 100755 --- a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh @@ -12,6 +12,7 @@ if [ "$(ls -A "$CONFIGSOURCE/configurations")" ]; then bashio::log.info "Configurations were found in $CONFIGSOURCE/configurations, they will be loaded." JSON_CONFIGURATION_DIR="$CONFIGSOURCE/configurations" export JSON_CONFIGURATION_DIR + chown -R www-data:www-data "$CONFIGSOURCE" fi # Allow config dir @@ -73,7 +74,7 @@ bashio::log.info "Please wait while the app is loading !" cd /var/www/html || true if bashio::config.true 'silent'; then bashio::log.warning "Silent mode activated. Only errors will be shown. Please disable in addon options if you need to debug" - /./usr/local/bin/entrypoint.sh >/dev/null + sudo su - www-data -s /bin/bash -c 'cd /var/www/html && /./usr/local/bin/entrypoint.sh' >/dev/null else - /./usr/local/bin/entrypoint.sh + sudo su - www-data -s /bin/bash -c 'cd /var/www/html && /./usr/local/bin/entrypoint.sh' fi