Immich: Ensure newline before appending IMMICH_HELMET_FILE to .env (#13667)

This commit is contained in:
CanbiZ (MickLesk)
2026-04-11 23:55:07 +02:00
committed by GitHub
parent f8668c74fc
commit 8b0156ede8

View File

@@ -276,6 +276,7 @@ EOF
sed -i '/^DB_DATABASE_NAME/a DB_HOSTNAME=127.0.0.1' "$INSTALL_DIR"/.env
fi
if ! grep -q 'HELMET_FILE' "$INSTALL_DIR"/.env; then
sed -i -e '$a\' "$INSTALL_DIR"/.env
echo "IMMICH_HELMET_FILE=true" >>"$INSTALL_DIR"/.env
fi