Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: AWS mounts its extra disks with inconsistent names.
Alex Vandiver0b1dd27841b8
diff --git a/puppet/zulip_ops/files/postgresql/setup_disks.sh b/puppet/zulip_ops/files/postgresql/setup_disks.shindex d67a52ab5d1..35a4a1230ed 100755--- a/puppet/zulip_ops/files/postgresql/setup_disks.sh+++ b/puppet/zulip_ops/files/postgresql/setup_disks.sh@@ -2,14 +2,17 @@set -xset -e-LOCALDISK=/dev/nvme0n1+# This file only exists on the server, ignore its non-existence locally+# shellcheck disable=SC1091+. "/sys/dev/block/259:0/uevent"-if ! grep -q $LOCALDISK /etc/fstab; then+LOCALDISK="/dev/$DEVNAME"+if ! grep -q "$LOCALDISK" /etc/fstab; thenecho "$LOCALDISK /srv xfs nofail,noatime 1 1" >>/etc/fstabfiif ! mountpoint -q /srv; then- mkfs.xfs $LOCALDISK+ mkfs.xfs "$LOCALDISK"mount /srvfi