1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +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)

View file

@ -1,5 +1,7 @@
<%+header%>
<%
luci.sys.call("/etc/init.d/openmptcprouter-vps backup_list >/dev/null 2>/dev/null")
%>
<% if stderr and #stderr > 0 then %><pre class="error"><%=pcdata(stderr)%></pre><% end %>
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/backupgr')%>">
<div class="cbi-map">