From: Peter Palfrader Date: Tue, 24 Sep 2019 09:31:07 +0000 (+0200) Subject: better shell syntax X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6bd8475576cb562efe04ed9b4cc406d729055413;p=mirror%2Fdsa-puppet.git better shell syntax --- diff --git a/modules/postgres/templates/backup_server/postgres-make-base-backups.erb b/modules/postgres/templates/backup_server/postgres-make-base-backups.erb index ca17f62cb..f9381f152 100755 --- a/modules/postgres/templates/backup_server/postgres-make-base-backups.erb +++ b/modules/postgres/templates/backup_server/postgres-make-base-backups.erb @@ -41,7 +41,7 @@ STATEDIR=/var/lib/dsa/postgres-make-base-backups #### set -u -if [ "$(id -u)" = 0 ]; +if [ "$(id -u)" = 0 ]; then echo >&2 "Do not run me as root. Probably you want sudo -u debbackup." exit 1 fi