Update bootstrap.sh

This commit is contained in:
Hosteroid
2025-11-05 12:44:59 +02:00
parent 86d4cb0af6
commit 5b932aa565

View File

@@ -117,8 +117,12 @@ done
# Allow installer to create .installed at project root # Allow installer to create .installed at project root
chmod 775 "$APP_DIR" chmod 775 "$APP_DIR"
# .env readable by root & group only # .env must be writable by www-data (installer needs to write encryption key)
chmod 640 "$APP_DIR/.env" || true if [ -f "$APP_DIR/.env" ]; then
echo " - Making .env writable by ${WWW_UID}:${WWW_GID} for installation"
chown ${WWW_UID}:${WWW_GID} "$APP_DIR/.env"
chmod 660 "$APP_DIR/.env"
fi
# Install vendors via Composer container # Install vendors via Composer container
echo "==> Installing Composer vendors (composer:2) ..." echo "==> Installing Composer vendors (composer:2) ..."