From 3221fa16efa272d94d63d8ba831573e515bd6dbe Mon Sep 17 00:00:00 2001 From: friedrich goerz Date: Wed, 3 May 2023 22:34:50 +0200 Subject: [PATCH] DEV-1029: added debugging stuff to hopefully get more insights - bugfix4 --- templates/cm_pg_backup_scripts.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/cm_pg_backup_scripts.yaml b/templates/cm_pg_backup_scripts.yaml index 7bfe3a9..6354fdb 100644 --- a/templates/cm_pg_backup_scripts.yaml +++ b/templates/cm_pg_backup_scripts.yaml @@ -3,11 +3,11 @@ data: postgres_backup.sh: | #!/bin/bash - DEBUG_LOG="/tmp/pg_backup_`date +%F`.log" - echo "Plz check $DEBUG_LOG for debugging purpose. EVERY output will be redirected!" + echo "Plz check DEBUG_LOG for debugging purpose. EVERY output will be redirected!" # fgoerz DEV-1029 # pipe all output to file for debugging purpose - exec 2>&1 1>$DEBUG_LOG + exec 1>>/tmp/pg_backup_`date +%F`.log + exec 2>&1 function log {