mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
userinterface: fix rpcd script
This commit is contained in:
parent
5315408948
commit
67567aeed5
2 changed files with 13 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue