X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Ftemplates%2Fbackup_server%2Fpostgres-make-backup-sshauthkeys.erb;h=715e4936032d4af72b367dd6df9923a2ce77a495;hb=8a6f86ad8e7da1d84ef781cc4415ede0247fe7ec;hp=ae17363b46e54ffc152cb873dfa6993a6f8e8380;hpb=872979e8aae8f604651cbc9fb2c07c5c22245714;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb b/modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb index ae17363b4..715e49360 100755 --- a/modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb +++ b/modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb @@ -27,9 +27,14 @@ set -u CONFFILE=/etc/dsa/postgresql-backup/sshkeys-sources OUTFILE=/etc/ssh/userkeys/debbackup -HEAD=/etc/dsa/postgresql-backup/sshkeys-local - -: > "${OUTFILE}.new" +HEAD=/etc/dsa/postgresql-backup/sshkeys-manual + +cat > "${OUTFILE}.new" << EOF +# ################### +# This file was created using postgres-make-backup-sshauthkeys. +# Do not edit this manually but edit its sources and run the script (or let puppet run it for you). +##################### +EOF if [ -e "$HEAD" ] ; then echo "# $HEAD" >> "${OUTFILE}.new"