Skip to content
Snippets Groups Projects
Commit f08e11d3 authored by Vivek Dutta's avatar Vivek Dutta
Browse files

Fixed rpcd scripts

parent ead8f5e7
No related branches found
No related tags found
No related merge requests found
Pipeline #170645 failed
...@@ -242,7 +242,7 @@ case "$1" in ...@@ -242,7 +242,7 @@ case "$1" in
json_init json_init
json_add_string "last_update" "${last_update}" json_add_string "last_update" "${last_update}"
json_dump json_dump
return exit 0
fi fi
run_dir=$(uci -q get ddnsmngr.global.ddns_rundir) run_dir=$(uci -q get ddnsmngr.global.ddns_rundir)
...@@ -257,7 +257,7 @@ case "$1" in ...@@ -257,7 +257,7 @@ case "$1" in
json_init json_init
json_add_string "last_update" "${last_update}" json_add_string "last_update" "${last_update}"
json_dump json_dump
return exit 0
else else
# strip next line from end # strip next line from end
last_time=$(echo -e $last_time | tr -d '\n') last_time=$(echo -e $last_time | tr -d '\n')
...@@ -284,7 +284,7 @@ case "$1" in ...@@ -284,7 +284,7 @@ case "$1" in
json_init json_init
json_add_string "status" "Error" json_add_string "status" "Error"
json_dump json_dump
return exit 0
fi fi
state=$(get_hostname_status "${host_section}") state=$(get_hostname_status "${host_section}")
...@@ -303,7 +303,7 @@ case "$1" in ...@@ -303,7 +303,7 @@ case "$1" in
json_init json_init
json_add_string "status" "Error" json_add_string "status" "Error"
json_dump json_dump
return exit 0
fi fi
state=$(get_client_status "${client_section}") state=$(get_client_status "${client_section}")
...@@ -322,7 +322,7 @@ case "$1" in ...@@ -322,7 +322,7 @@ case "$1" in
json_init json_init
json_add_string "last_error" "CONNECTION_ERROR" json_add_string "last_error" "CONNECTION_ERROR"
json_dump json_dump
return exit 0
fi fi
error=$(get_last_error "${client_section}") error=$(get_last_error "${client_section}")
......
...@@ -225,7 +225,7 @@ case "$1" in ...@@ -225,7 +225,7 @@ case "$1" in
json_init json_init
json_add_string "last_update" "${last_update}" json_add_string "last_update" "${last_update}"
json_dump json_dump
return exit 0
fi fi
hostname=$(uci -q get ddnsmngr.${host_section}.lookup_host) hostname=$(uci -q get ddnsmngr.${host_section}.lookup_host)
...@@ -255,7 +255,7 @@ case "$1" in ...@@ -255,7 +255,7 @@ case "$1" in
json_init json_init
json_add_string "status" "Error" json_add_string "status" "Error"
json_dump json_dump
return exit 0
fi fi
state=$(get_hostname_status "${host_section}") state=$(get_hostname_status "${host_section}")
...@@ -277,7 +277,7 @@ case "$1" in ...@@ -277,7 +277,7 @@ case "$1" in
json_init json_init
json_add_string "status" "Error" json_add_string "status" "Error"
json_dump json_dump
return exit 0
fi fi
state=$(get_client_status "${client_section}") state=$(get_client_status "${client_section}")
...@@ -296,7 +296,7 @@ case "$1" in ...@@ -296,7 +296,7 @@ case "$1" in
json_init json_init
json_add_string "last_error" "CONNECTION_ERROR" json_add_string "last_error" "CONNECTION_ERROR"
json_dump json_dump
return exit 0
fi fi
error=$(get_last_error "${client_section}") error=$(get_last_error "${client_section}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment