From fd44b938f254f0f4da62216505fb06bbf115b7c1 Mon Sep 17 00:00:00 2001 From: Youngkyun Kim Date: Wed, 7 Sep 2016 08:02:20 -0400 Subject: [PATCH] Add volume unmount --- app/controllers/volume_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index 740f2dc..d362a5e 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -55,9 +55,10 @@ class VolumeController < ApplicationController end def volume_unmount + @config = get_conf volume_name = params[:volume_name] - puts `umount #{volune_name}` - `umount #{volune_name}` + puts "umount " + @config["host_ip"] + ":/" + volume_name + `umount #{@config["host_ip"]}:/#{volume_name}` redirect_to '/volume/index' end