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"