From f6363e2683e6861e5fc48e58ea9c730ceee68c86 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 4 May 2017 16:48:02 +0200 Subject: [PATCH] Create run.sh --- sync/run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sync/run.sh diff --git a/sync/run.sh b/sync/run.sh new file mode 100644 index 0000000..002788e --- /dev/null +++ b/sync/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash +sed -e + +CONFIG_PATH=/data/options.json + +TARGET=$(jq --raw-output ".target" $CONFIG_PATH) +USERNAME=$(jq --raw-output ".username" $CONFIG_PATH) +PASSWORD=$(jq --raw-output ".password" $CONFIG_PATH) + +echo "fake copy from /config to $TARGET@$USERNAME"