git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@372
8392b6e1-25fa-0310-8288-
cc32f8e212ea
my $host = $p->{host};
my $share = $p->{share};
my $dump = $p->{num};
-
- my $cmd = $tarIncCreate. " -h $host -s $share -n $dump";
+ my $otherUser = "backuppc-agi";
+
+ my $cmd = "sudo -u $otherUser ".$tarIncCreate. " -h $host -s $share -n $dump";
print "$cmd ";
if (system($cmd) != 0) {
print " FAILED.\n";
} else {
$iso_size = (stat($iso_file))[7];
- print "ISO $iso_file allready exists [$iso_size bytes]\n";
+ print "ISO $iso_file already exists [$iso_size bytes]\n";
}
print "\nREADY TO BURN MEDIA $disk_name copy $copy_nr\n\nPlease insert blank media and press ENTER\n\n";
- die("debugging only!");
-
system($bin->{'eject'}.' '.$eject_opts) == 0 or skip "can't run eject: $?";
my $wait = <STDIN>;