This commit is contained in:
bee0005 2016-09-01 10:10:57 +00:00
parent ac25be1dc8
commit 8cca9682c0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>