Update mount function

This commit is contained in:
Youngkyun Kim
2016-09-03 08:25:09 +00:00
parent 2b9a95fb00
commit 65e71a89e2
2 changed files with 112 additions and 33 deletions

View File

@@ -75,7 +75,7 @@ class VolumeController < ApplicationController
volume_name = params[:volume_name]
volume_name = volume_name.delete(' ')
puts "gluster volume delete " + volume_name
#output = `sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume delete #{volume_name}`
output = `yes | sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume delete #{volume_name}`
redirect_to '/volume/index'
end
end