Skip to content

Commit e593daa

Browse files
committed
Fix support docker version
1 parent 80aa755 commit e593daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/sh
22
set -e
33

4-
if [ -z "${SLEEP}" ]; then
5-
SLEEP=$(jq --raw-output '.sleep // "24h"' /data/options.json)
4+
if [ -f "/data/options.json" ]; then
5+
SLEEP=$(jq --raw-output ".sleep" /data/options.json)
66
fi
77

88
while true; do
99
scaleconnect
10-
sleep $SLEEP
10+
sleep ${SLEEP:-24h}
1111
done

0 commit comments

Comments
 (0)