Move backup-server specific sudoers entries out of debian-global sudo
[mirror/dsa-puppet.git] / modules / roles / files / postgresql_server / pg-backup-file
index 08e6d38..9a432e5 100755 (executable)
@@ -59,7 +59,7 @@ size="`stat -c '%s' "$file"`"
 checksum=""
 bn="`basename "$file"`"
 targetname="$cluster.$what.$bn"
-logtuple="($myhost,$targetname,$size,$checksum)"
+logtuple_start="($myhost,$targetname,$size"
 failures=""
 
 for target in $backuphost; do
@@ -72,7 +72,7 @@ for target in $backuphost; do
 
                ssh -C "$target" $ssh_options -o BatchMode=yes -o ServerAliveInterval=90 $myhost store-file pg "$targetname" "$size" "$checksum" < "$file"
                if [ "$?" != 0 ]; then
-                       failures="$failures $logtuple"
+                       failures="$failures $logtuple_start,$checksum,$target)"
                fi
        fi
 done