From e12157c66dc82de69831c9bd4de047c7a25463aa Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 14 May 2025 14:20:43 +0200 Subject: [PATCH] fix tools.func postgresql --- misc/tools.func | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 6f6bc4e..28a4869 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -123,10 +123,10 @@ install_postgresql() { if [[ -n "$CURRENT_PG_VERSION" ]]; then msg_info "Dumping all PostgreSQL data from version $CURRENT_PG_VERSION" su - postgres -c "pg_dumpall > /var/lib/postgresql/backup_$(date +%F)_v${CURRENT_PG_VERSION}.sql" - fi - msg_info "Stopping PostgreSQL service" - systemctl stop postgresql || true + msg_info "Stopping PostgreSQL service" + systemctl stop postgresql + fi msg_info "Removing pgdg repo and old GPG key" rm -f /etc/apt/sources.list.d/pgdg.list /etc/apt/trusted.gpg.d/postgresql.gpg