userinterface: fix rpcd script

This commit is contained in:
Vivek Kumar Dutta 2024-09-12 18:55:06 +05:30
parent 5315408948
commit 67567aeed5
2 changed files with 13 additions and 3 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=userinterface
PKG_VERSION:=1.1.4
PKG_VERSION:=1.1.5
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -70,7 +70,12 @@ case "$1" in
call)
case "$2" in
http_session)
get_nginx_session_list
out="$(get_nginx_session_list)"
if [ -z "${out}" ]; then
echo '{}'
else
echo "$out"
fi
;;
http_status)
read -r input
@ -79,7 +84,12 @@ case "$1" in
json_get_var port "port"
json_cleanup
get_nginx_status "${port}"
out="$(get_nginx_status "${port})"
if [ -z "${out}" ]; then
echo '{}'
else
echo "$out"
fi
;;
esac
;;