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}"