mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +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 ut = require "luci.util"
|
||||||
local result = ut.ubus("openmptcprouter", "update_vps", {})
|
local result = ut.ubus("openmptcprouter", "update_vps", {})
|
||||||
end
|
end
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
function backupgr()
|
function backupgr()
|
||||||
|
@ -746,6 +747,8 @@ function backupgr()
|
||||||
if send_backup ~= "" then
|
if send_backup ~= "" then
|
||||||
luci.sys.call("/etc/init.d/openmptcprouter-vps backup_send >/dev/null 2>/dev/null")
|
luci.sys.call("/etc/init.d/openmptcprouter-vps backup_send >/dev/null 2>/dev/null")
|
||||||
end
|
end
|
||||||
|
luci.http.redirect(luci.dispatcher.build_url("admin/system/openmptcprouter/backup"))
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_device(interface)
|
function get_device(interface)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<%+header%>
|
<%+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 %>
|
<% if stderr and #stderr > 0 then %><pre class="error"><%=pcdata(stderr)%></pre><% end %>
|
||||||
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/backupgr')%>">
|
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/backupgr')%>">
|
||||||
<div class="cbi-map">
|
<div class="cbi-map">
|
||||||
|
|
Loading…
Reference in a new issue