mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 21:54:20 +01:00
Fix bug with seconds (#55)
This commit is contained in:
@@ -5,7 +5,7 @@ CONFIG_PATH=/data/options.json
|
||||
|
||||
TOKEN=$(jq --raw-output ".token" $CONFIG_PATH)
|
||||
DOMAINS=$(jq --raw-output ".domains[]" $CONFIG_PATH)
|
||||
SECONDS=$(jq --raw-output ".seconds" $CONFIG_PATH)
|
||||
WAIT_TIME=$(jq --raw-output ".seconds" $CONFIG_PATH)
|
||||
|
||||
for line in $DOMAINS; do
|
||||
if [ -z "$DOMAIN_ARG" ]; then
|
||||
@@ -19,5 +19,5 @@ done
|
||||
while true; do
|
||||
ANSWER="$(curl -sk "https://www.duckdns.org/update?domains=$DOMAIN_ARG&token=$TOKEN&ip=&verbose=true")"
|
||||
echo "$(date): $ANSWER"
|
||||
sleep "$SECONDS"
|
||||
sleep "$WAIT_TIME"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user