diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index 803cb84..600ab1c 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -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 diff --git a/app/views/volume/index.html.erb b/app/views/volume/index.html.erb index 1b90693..e80c073 100644 --- a/app/views/volume/index.html.erb +++ b/app/views/volume/index.html.erb @@ -1,9 +1,71 @@ -
Volume Info
Volume Info
Start
@@ -101,20 +165,18 @@ Delete - <% else %> -Stop
- - Mount - + Mount <% end %>Drag multiple files to the box below for multi upload or click to select files.