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

Fixed rpcd scripts

parent ead8f5e7
No related branches found
No related tags found
1 merge request!5Fixed rpcd scripts
Pipeline #170648 passed
......@@ -8,6 +8,7 @@ variables:
include:
- project: 'iopsys/gitlab-ci-pipeline'
file: '/static-code-analysis.yml'
ref: '0.31'
stages:
- static_code_analysis
......
......@@ -242,7 +242,7 @@ case "$1" in
json_init
json_add_string "last_update" "${last_update}"
json_dump
return
exit 0
fi
run_dir=$(uci -q get ddnsmngr.global.ddns_rundir)
......@@ -257,7 +257,7 @@ case "$1" in
json_init
json_add_string "last_update" "${last_update}"
json_dump
return
exit 0
else
# strip next line from end
last_time=$(echo -e $last_time | tr -d '\n')
......@@ -284,7 +284,7 @@ case "$1" in
json_init
json_add_string "status" "Error"
json_dump
return
exit 0
fi
state=$(get_hostname_status "${host_section}")
......@@ -303,7 +303,7 @@ case "$1" in
json_init
json_add_string "status" "Error"
json_dump
return
exit 0
fi
state=$(get_client_status "${client_section}")
......@@ -322,7 +322,7 @@ case "$1" in
json_init
json_add_string "last_error" "CONNECTION_ERROR"
json_dump
return
exit 0
fi
error=$(get_last_error "${client_section}")
......
......@@ -225,7 +225,7 @@ case "$1" in
json_init
json_add_string "last_update" "${last_update}"
json_dump
return
exit 0
fi
hostname=$(uci -q get ddnsmngr.${host_section}.lookup_host)
......@@ -255,7 +255,7 @@ case "$1" in
json_init
json_add_string "status" "Error"
json_dump
return
exit 0
fi
state=$(get_hostname_status "${host_section}")
......@@ -277,7 +277,7 @@ case "$1" in
json_init
json_add_string "status" "Error"
json_dump
return
exit 0
fi
state=$(get_client_status "${client_section}")
......@@ -296,7 +296,7 @@ case "$1" in
json_init
json_add_string "last_error" "CONNECTION_ERROR"
json_dump
return
exit 0
fi
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