From 25b6afd27ff94bd0ff8180673ee3ae1f3f6b9adb Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Thu, 7 Oct 2021 21:08:52 +0200 Subject: [PATCH] L2SS-394: Just dump to stdout, as is normal for commands. No need for more complexity. --- bin/dump_ConfigDb.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/dump_ConfigDb.sh b/bin/dump_ConfigDb.sh index bbd97a220..7745c1848 100755 --- a/bin/dump_ConfigDb.sh +++ b/bin/dump_ConfigDb.sh @@ -1,6 +1,4 @@ -if [ ${#} -ne 1 ]; then - echo "You must provide a file name for the TANGO_HOST DB dump!" - exit -1 -fi +#!/bin/bash -docker exec -it dsconfig python -m dsconfig.dump > ${1} +# writes the JSON dump to stdout +docker exec -it dsconfig python -m dsconfig.dump -- GitLab