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

Fix backup to server

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-10-29 20:09:20 +01:00
parent 1f70875a14
commit 21247f3393
2 changed files with 6 additions and 1 deletions

View file

@ -735,6 +735,7 @@ function update_vps()
local ut = require "luci.util"
local result = ut.ubus("openmptcprouter", "update_vps", {})
end
return
end
function backupgr()
@ -746,6 +747,8 @@ function backupgr()
if send_backup ~= "" then
luci.sys.call("/etc/init.d/openmptcprouter-vps backup_send >/dev/null 2>/dev/null")
end
luci.http.redirect(luci.dispatcher.build_url("admin/system/openmptcprouter/backup"))
return
end
function get_device(interface)