From e36362547be940d1581764ef7be5f984d6d78039 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 5 Feb 2018 10:32:00 +0100 Subject: [PATCH] Add a comment header to /etc/ssh/userkeys/debbackup --- .../backup_server/postgres-make-backup-sshauthkeys.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" -- 2.20.1