Update bootstrap.sh
This commit is contained in:
@@ -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) ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user