Add a comment header to /etc/ssh/userkeys/debbackup
authorPeter Palfrader <peter@palfrader.org>
Mon, 5 Feb 2018 09:32:00 +0000 (10:32 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 5 Feb 2018 09:32:00 +0000 (10:32 +0100)
modules/postgres/templates/backup_server/postgres-make-backup-sshauthkeys.erb

index c2fc216..715e493 100755 (executable)
@@ -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"