update
This commit is contained in:
parent
ac25be1dc8
commit
8cca9682c0
@ -110,7 +110,7 @@ class VolumeController < ApplicationController
|
||||
volume_name = params[:volume_name]
|
||||
volume_name = volume_name.delete(' ')
|
||||
puts "gluster volume start " + volume_name
|
||||
#output = `sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume start #{volume_name}`
|
||||
output = `sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume start #{volume_name}`
|
||||
redirect_to '/volume/index'
|
||||
end
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
||||
Options Reconfigured : <%=t["Options Reconfigured"]%> <br>
|
||||
performance.readdir-ahead : <%=t["performance.readdir-ahead"]%>
|
||||
<br><br><br>
|
||||
<% if t["Status"] == " start" %>
|
||||
<% if t["Status"] == " Stopped" %>
|
||||
<a class="btn btn-round btn-success btn-lg" href="/volume/start/<%=t['Volume Name']%>">
|
||||
<i class="fa fa-play"></i> Start
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user