mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
Fix bug with seconds (#55)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Duck DNS",
|
||||
"version": "0.2",
|
||||
"version": "0.3",
|
||||
"slug": "duckdns",
|
||||
"description": "Free dynamic DNS hosted on Amazon VPC",
|
||||
"url": "https://home-assistant.io/addons/duckdns/",
|
||||
|
||||
@@ -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