fix(infisical): align DB password parsing with setup_postgresql_db (#14868)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michel Roegl-Brunner
2026-06-02 08:19:13 +02:00
parent cd8a6f1de0
commit 970a645c56

View File

@@ -35,7 +35,7 @@ function update_script() {
msg_info "Creating backup"
[[ -f /opt/infisical_backup.sql ]] && rm -f /opt/infisical_backup.sql
DB_PASS=$(grep -Po '(?<=^Database Password:\s).*' ~/infisical.creds | head -n1)
DB_PASS=$(grep -Po '(?<=^Password:\s).*' ~/infisical.creds | head -n1)
PGPASSWORD=$DB_PASS pg_dump -U infisical -h localhost -d infisical_db > /opt/infisical_backup.sql
msg_ok "Created backup"