mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 11:01:50 +00:00
Fix backup to server
This commit is contained in:
parent
1f70875a14
commit
21247f3393
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue