Skip to content

Commit 90cdda8

Browse files
committed
chore: disable default postgres service
1 parent bb73d04 commit 90cdda8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/server_setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ fi
110110
PG_INSTALLED_VERSION=$(/usr/lib/postgresql/${PG_VERSION}/bin/psql --version | awk '{print $3}')
111111
echo "✓ PostgreSQL ${PG_VERSION} verified: ${PG_INSTALLED_VERSION}"
112112

113+
# Disable and stop default PostgreSQL service
114+
echo "Disabling default PostgreSQL service..."
115+
sudo systemctl stop postgresql || true
116+
sudo systemctl disable postgresql || true
117+
sudo systemctl mask postgresql || true
118+
echo "✓ PostgreSQL service disabled"
119+
113120
# Configure ZFS kernel module for persistent loading
114121
echo "Configuring ZFS kernel module..."
115122
echo "zfs" | sudo tee -a /etc/modules

0 commit comments

Comments
 (0)