1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix openmptcprouter vps login

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-02-05 19:49:19 +01:00
parent a1a7c39923
commit d77382ac8c

View file

@ -37,6 +37,7 @@ _login() {
[ -z "$auth" ] && return
token="$(echo "$auth" | jsonfilter -q -e '@.access_token')"
uci -q set openmptcprouter.${servername}.token="$token"
[ -n "$token" ] && break
}
config_load openmptcprouter
config_list_foreach ${servername} ip login_on_server