From fa13b07c7c7c17c09ea3aac9357e7973b2b4ecb2 Mon Sep 17 00:00:00 2001 From: Janek <6506725+jkrgr0@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:20:38 +0000 Subject: [PATCH] fix(install): :bug: explicitly set ownership as last step --- install/2fauth-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index c54ae87e..b17380f6 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -61,9 +61,6 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \ -e "s|^DB_USERNAME=$|DB_USERNAME=$DB_USER|" \ -e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env -chown -R www-data: /opt/2fauth -chmod -R 755 /opt/2fauth - export COMPOSER_ALLOW_SUPERUSER=1 $STD composer update --no-plugins --no-scripts $STD composer install --no-dev --prefer-source --no-plugins --no-scripts @@ -75,6 +72,9 @@ $STD php artisan passport:install -q -n $STD php artisan storage:link $STD php artisan config:cache +chown -R www-data: /opt/2fauth +chmod -R 755 /opt/2fauth + echo "${RELEASE}" >"/opt/${app}_version.txt" msg_ok "Setup ${app}"