]> git.proxmox.com Git - pve-storage.git/commitdiff
Fixed command substitution and output redirection in Istgt module to work in csh...
authorChris Allen <Chris Allen>
Mon, 10 Mar 2014 20:06:09 +0000 (13:06 -0700)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jun 2014 07:13:31 +0000 (09:13 +0200)
Signed-off-by: Chris Allen <Chris Allen>
PVE/Storage/LunCmd/Istgt.pm

index b386b5d7b455c91907395947137629c3102c5015..2d59ef30fdad0ada13929f4ebd0f0ad10d57456b 100644 (file)
@@ -430,14 +430,14 @@ my $add_view = sub {
     my $cmdmap;
 
     if (@params && $params[0] eq 'restart') {
-        @params = ('restart', '1>&2', '>', '/dev/null');
+        @params = ('onerestart', '>&', '/dev/null');
         $cmdmap = {
             cmd => 'ssh',
             method => $DAEMON,
             params => \@params,
         };
     } else {
-        @params = ('-HUP', '$(cat '. "$SETTINGS->{pidfile})");
+        @params = ('-HUP', '`cat '. "$SETTINGS->{pidfile}`");
         $cmdmap = {
             cmd => 'ssh',
             method => 'kill',