Subversion Repositories zfs_utils

Rev

Rev 44 | Rev 46 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 44 Rev 45
Line 223... Line 223...
223
                     );
223
                     );
224
      if ( %$commands ) {
224
      if ( %$commands ) {
225
         foreach my $cmd ( keys %$commands ) {
225
         foreach my $cmd ( keys %$commands ) {
226
            my $command = $commands->{$cmd};
226
            my $command = $commands->{$cmd};
227
            my $outputFile = $cmd;
227
            my $outputFile = $cmd;
228
            #$outputFile =~ s/^$root//;
-
 
229
            $outputFile = replaceSlashWithDot($outputFile);
228
            $outputFile = replaceSlashWithDot($outputFile);
230
            #$command .= " | openssl enc -aes-256-cbc -K $config->{transport}->{encryption}->{key} -iv $config->{transport}->{encryption}->{IV} " if $config->{transport}->{encryption}->{key};
229
            $command .= " | openssl enc -aes-256-cbc -K $config->{transport}->{encryption}->{key} -iv $config->{transport}->{encryption}->{IV} " if $config->{transport}->{encryption}->{key};
231
            $command .= " > $config->{transport}->{mount_point}/" . $cmd;
230
            $command .= " > $config->{transport}->{mount_point}/" . $cmd;
232
            logMsg("Running command: $command");
231
            logMsg("Running command: $command");
233
            runCmd(  $command  ) unless $config->{dryrun};
232
            runCmd(  $command  ) unless $config->{dryrun};
234
         }
233
         }
235
      } else {
234
      } else {