postgres remnant removed

This commit is contained in:
Trevor Batley 2023-09-04 15:22:33 +10:00
parent 0ee9eafc12
commit 10b36b0f4d

View File

@ -154,7 +154,7 @@ chown -R kojiadmin:kojiadmin "$ADMIN_KOJI_DIR"
# Initialize PostgreSQL DB
mkdir -p "$POSTGRES_DIR"
chown -R "$POSTGRES_USER":"$POSTGRES_USER" "$POSTGRES_DIR"
sudo -u "$POSTGRES_USER" initdb --pgdata "$POSTGRES_DEFAULT_DIR"/data
sudo -u "$POSTGRES_USER" initdb --pgdata "$POSTGRES_DIR"/data
systemctl enable --now postgresql
# Setup User Accounts