gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] branch master updated: fail if times.env not found


From: gnunet
Subject: [taler-grid5k] branch master updated: fail if times.env not found
Date: Thu, 12 May 2022 16:26:23 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

The following commit(s) were added to refs/heads/master by this push:
     new 87b3f10  fail if times.env not found
87b3f10 is described below

commit 87b3f107ca29d097bd80fc5dce98f9aa8558445e
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Thu May 12 16:26:17 2022 +0200

    fail if times.env not found
---
 additional/recover/run.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/additional/recover/run.sh b/additional/recover/run.sh
index 80ed850..1565ef0 100755
--- a/additional/recover/run.sh
+++ b/additional/recover/run.sh
@@ -1,10 +1,10 @@
 #!/bin/bash
-set -eu
+set -e
 # Script to run a local instance of grafana, loki and prometheus
 # with a data (prometheus and loki) snapshot of an experiment
 
 function fail() {
-  echo "docker-compose needed"
+  echo -e "$1"
   exit 1
 }
 
@@ -42,7 +42,10 @@ fi
 
 
 # load the times to adjust the grafana dashboards
-source "${TMP_BASEDIR}/times.env"
+source "${TMP_BASEDIR}/times.env" || fail \
+"Archive does not contain times.env,
+make sure to pass an uncomressed tar archive created with persist.sh or the 
unpacked exp-data folder"
+ 
 
 START=$(date --date=@${EXPERIMENT_START} +"%F %T")
 END=$(date --date=@${SNAPSHOT_TIME} +"%F %T")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]