mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
Using `service postgresql` makes it no longer linked to the specific version/cluster that is on the host.
15 lines
244 B
Bash
Executable File
15 lines
244 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LOCALDISK=/dev/nvme0n1
|
|
|
|
mkfs.xfs $LOCALDISK
|
|
|
|
echo "$LOCALDISK /srv xfs nofail,noatime 1 1" >> /etc/fstab
|
|
mount /srv
|
|
|
|
service postgresql stop
|
|
mv /var/lib/postgresql /srv
|
|
ln -s /srv/postgresql/ /var/lib
|
|
|
|
service postgresql start
|