set -u
if [ "$(id -u)" = 0 ]; then
- echo >&2 "Do not run me as root. Probably you want sudo -u debbackup."
+ echo >&2 "Do not run me as root. Probably you want sudo -u <%= @backup_unix_user %>."
exit 1
fi
log "Cannot acquire lock on $flagfile, skipping $host:$port $version/$cluster."
fi
fi
-done << EOF
-seger.debian.org 5432 debian-backup dak 9.6
-bmdb1.debian.org 5435 debian-backup main 9.6
-bmdb1.debian.org 5440 debian-backup debsources 9.6
-sallinen.debian.org 5473 debian-backup snapshot 9.6
-#
-# puppet notice: this is just a partial file. The tail EOF comes
-# from a different concat fragment
+done < '<%= scope['postgres::backup_server::globals::base_backup_clusters'] %> '