Create run.sh

This commit is contained in:
Pascal Vizeli
2017-05-04 16:48:02 +02:00
committed by GitHub
parent 983e93b061
commit f6363e2683

10
sync/run.sh Normal file
View File

@@ -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"