From: Peter Palfrader Date: Mon, 5 Feb 2018 09:32:00 +0000 (+0100) Subject: Add a comment header to /etc/ssh/userkeys/debbackup X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e36362547be940d1581764ef7be5f984d6d78039;p=mirror%2Fdsa-puppet.git Add a comment header to /etc/ssh/userkeys/debbackup --- 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 c2fc21659..715e49360 100755 --- a/modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb +++ b/modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb @@ -29,7 +29,12 @@ CONFFILE=/etc/dsa/postgresql-backup/sshkeys-sources OUTFILE=/etc/ssh/userkeys/debbackup HEAD=/etc/dsa/postgresql-backup/sshkeys-manual -: > "${OUTFILE}.new" +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"