Refactor: Infisical (#10693)

* Refactor

* Update

* Fix
This commit is contained in:
Slaviša Arežina
2026-01-11 18:06:48 +01:00
committed by GitHub
parent 0090cb8b4b
commit e18a34ce63
2 changed files with 5 additions and 21 deletions

View File

@@ -33,6 +33,7 @@ function update_script() {
msg_ok "Service stopped"
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)
PGPASSWORD=$DB_PASS pg_dump -U infisical -h localhost -d infisical_db > /opt/infisical_backup.sql
msg_ok "Created backup"