* MOD: cleanup
Test stage / check and test (push) Failing after 7s

Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
2024-01-20 14:09:23 +01:00
parent fb9040ef07
commit c4662173ff
+2 -1
View File
@@ -1,5 +1,6 @@
#!/bin/bash
# shellcheck source=/dev/null
. /app/includes.sh
function clear_dir() {
@@ -20,7 +21,7 @@ function backup_db_postgresql() {
echo "backup postgresql database"
pg_dump -Fc -h "${POSTGRES_HOST}" -p "${POSTGRES_PORT}" -d "${POSTGRES_DB}" -U "${POSTGRES_USER}" -f "${BACKUP_FILE_DB_POSTGRESQL}"
if [[ $? != 0 ]]; then
if [[ ! pg_dump ]]; then
echo "backup postgresql database failed"
exit 1