fix(install): 🐛 explicitly set ownership as last step

This commit is contained in:
Janek 2024-12-20 13:20:38 +00:00
parent 600c731f45
commit fa13b07c7c

View File

@ -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_USERNAME=$|DB_USERNAME=$DB_USER|" \
-e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env -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 export COMPOSER_ALLOW_SUPERUSER=1
$STD composer update --no-plugins --no-scripts $STD composer update --no-plugins --no-scripts
$STD composer install --no-dev --prefer-source --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 storage:link
$STD php artisan config:cache $STD php artisan config:cache
chown -R www-data: /opt/2fauth
chmod -R 755 /opt/2fauth
echo "${RELEASE}" >"/opt/${app}_version.txt" echo "${RELEASE}" >"/opt/${app}_version.txt"
msg_ok "Setup ${app}" msg_ok "Setup ${app}"