From 915e2d4f585eddfe679ab37dd475209daa7bf96f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 21 Oct 2025 09:57:33 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 39061a72..11f8076e 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2694,7 +2694,7 @@ function setup_postgresql() { msg_info "Installing PostgreSQL $PG_VERSION" if [[ -n "$CURRENT_PG_VERSION" ]]; then - $STD runuser -u postgres -- pg_dumpall > /var/lib/postgresql/backup_$(date +%F)_v${CURRENT_PG_VERSION}.sql + $STD runuser -u postgres -- pg_dumpall >/var/lib/postgresql/backup_$(date +%F)_v${CURRENT_PG_VERSION}.sql $STD systemctl stop postgresql fi @@ -2775,7 +2775,7 @@ function setup_postgresql() { if [[ -n "$CURRENT_PG_VERSION" ]]; then $STD apt purge -y "postgresql-${CURRENT_PG_VERSION}" "postgresql-client-${CURRENT_PG_VERSION}" 2>/dev/null || true - $STD runuser -u postgres -- psql < /var/lib/postgresql/backup_$(date +%F)_v${CURRENT_PG_VERSION}.sql 2>/dev/null || true + $STD runuser -u postgres -- psql /dev/null || true fi $STD systemctl enable --now postgresql 2>/dev/null || true