mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
puppet: Use systemctl instead of pg_ctlcluster on CentOS.
This commit is contained in:
@@ -15,6 +15,7 @@ mkfs.xfs /dev/md0
|
||||
echo "/dev/md0 /srv xfs nofail,noatime,barrier 1 1" >> /etc/fstab
|
||||
mount /srv
|
||||
|
||||
# TODO use systemctl instead of pg_ctlcluster on CentOS
|
||||
pg_ctlcluster 9.5 main stop
|
||||
mv /var/lib/postgresql /srv
|
||||
ln -s /srv/postgresql/ /var/lib
|
||||
@@ -23,6 +24,7 @@ mv /tmp /srv
|
||||
mkdir /tmp
|
||||
mount --bind /srv/tmp /tmp
|
||||
echo "/srv/tmp /tmp bind nofail,defaults,bind 0 0" >> /etc/fstab
|
||||
# TODO use systemctl instead of pg_ctlcluster on CentOS
|
||||
pg_ctlcluster 9.5 main start
|
||||
|
||||
# Disable /mnt line for /dev/xvdb
|
||||
|
||||
Reference in New Issue
Block a user