From 882562d9e07ca77148e82b055b07931d5461518c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 22 Aug 2025 13:55:06 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 43711d9e..844fabd1 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -187,21 +187,16 @@ function setup_postgresql() { echo "deb https://apt.postgresql.org/pub/repos/apt ${DISTRO}-pgdg main" \ >/etc/apt/sources.list.d/pgdg.list - $STD msg_ok "Repository added" - $STD apt-get update + $STD msg_ok "Repository added" msg_info "Setup PostgreSQL $PG_VERSION" $STD apt-get install -y "postgresql-${PG_VERSION}" "postgresql-client-${PG_VERSION}" - msg_ok "Setup PostgreSQL $PG_VERSION" if [[ -n "$CURRENT_PG_VERSION" ]]; then $STD apt-get purge -y "postgresql-${CURRENT_PG_VERSION}" "postgresql-client-${CURRENT_PG_VERSION}" || true fi - - $STD msg_info "Starting PostgreSQL $PG_VERSION" systemctl enable -q --now postgresql - $STD msg_ok "PostgreSQL $PG_VERSION started" if [[ -n "$CURRENT_PG_VERSION" ]]; then $STD msg_info "Restoring dumped data"