From 1645578639a74267107f28a6432870d38f623695 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 7 Feb 2025 15:29:20 +0100 Subject: [PATCH] Remove sudo --- .../rootfs/etc/cont-init.d/99-run.sh | 22 +------------------ 1 file changed, 1 insertion(+), 21 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 9055c6127..aea23eed0 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 @@ -77,24 +77,4 @@ if bashio::config.true 'silent'; then fi mkdir -p /storage -sudo chown www-data:www-data /storage - -exit 0 - -sudo -E su - www-data -s /bin/bash -c 'cd /var/www/html -echo "Execute 11-execute-things.sh" -/./scripts/11-execute-things.sh - -if [[ "$silent" == "true" ]]; then - echo "Starting : php-fpm" - /usr/local/sbin/php-fpm --nodaemonize >/dev/null - echo "Starting : nginx" - nginx >/dev/null & true -else - echo "Starting : php-fpm" - /usr/local/sbin/php-fpm --nodaemonize - echo "Starting : nginx" - nginx & true -fi -' -sleep infinity +chown www-data:www-data /storage