From 330428142a6bb21ce6cf52997fad02c9e84519ce Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 1 Nov 2021 16:25:34 +0100
Subject: [PATCH] save config diffs

---
 bin/create_config.sh | 1 +
 deploy_app.sh        | 1 +
 2 files changed, 2 insertions(+)

diff --git a/bin/create_config.sh b/bin/create_config.sh
index faf27da..53f092e 100755
--- a/bin/create_config.sh
+++ b/bin/create_config.sh
@@ -138,6 +138,7 @@ diff "${tmpfile}" "${outfile}" >> ${cfgdiff} 2>/dev/null || bHasChanges=1
 if [ $bHasChanges -eq 0 ]; then
     _warn "INFO: no changes."
 else
+    echo "INFO: writing ${outfile} ..."
     mv -f "${tmpfile}" "${outfile}" || exit 4
 fi
 
diff --git a/deploy_app.sh b/deploy_app.sh
index d11589c..61ed12b 100755
--- a/deploy_app.sh
+++ b/deploy_app.sh
@@ -72,6 +72,7 @@ function setprofile(){
     downloadtmp="${tmpdir}/${IMLCI_PROJECT}.tgz.tmp"
     cfgdiff="${tmpdir}/${IMLCI_PROJECT}_cfgdiff.txt"
     test -f "${cfgdiff}" && rm -f "${cfgdiff}"
+    export cfgdiff
 }
 
 # output a colored infoline with date and given message
-- 
GitLab