Changeset 11232
- Timestamp:
- 08/18/08 15:18:48 (5 months ago)
- Location:
- branches/remote-services/ebox/src
- Files:
-
- 3 modified
-
EBox/RemoteServices/Server/JobReceiver.pm (modified) (2 diffs)
-
EBox/RemoteServices/Server/t/jobReceiver.t (modified) (2 diffs)
-
libexec/ebox-runnerd (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/remote-services/ebox/src/EBox/RemoteServices/Server/JobReceiver.pm
r11199 r11232 95 95 } 96 96 97 my $jobDirPath = INCOMING_DIR . "$jobId/";97 my $jobDirPath = JOBS_DIR . "$jobId/"; 98 98 my $retValue = 0; 99 99 if ( -d $jobDirPath ) { … … 106 106 chmod(0700, "$jobDirPath/script"); 107 107 File::Slurp::write_file( "$jobDirPath/args", $arguments); 108 # Create the symlink to incoming directory to make it notify to 109 # the ebox-runnerd 110 symlink( $jobDirPath, INCOMING_DIR . $jobId); 108 111 109 112 return $class->_soapResult($retValue); -
branches/remote-services/ebox/src/EBox/RemoteServices/Server/t/jobReceiver.t
r11199 r11232 47 47 script => qq{#!/bin/bash\necho "\$@"}, 48 48 arguments => $args); 49 my $jobDirPath = EBox::Config::conf() . "remote-services/jobs/ incoming/$jobId/";49 my $jobDirPath = EBox::Config::conf() . "remote-services/jobs/$jobId/"; 50 50 my $cmd = new Test::Cmd( 51 51 prog => "${jobDirPath}script", … … 74 74 _testCmd($cmd, $jobDirPath, $args); 75 75 76 system("rm -rf $jobDirPath");76 #system("rm -rf $jobDirPath"); -
branches/remote-services/ebox/src/libexec/ebox-runnerd
r11231 r11232 80 80 close($returnedFile); 81 81 unless ( -d OUTCOMING_DIR . $jobId ) { 82 symlink( $jobDir, OUTCOMING_DIR . $jobId); 82 my $realJobDir = JOBS_DIR . $jobId; 83 symlink( $realJobDir, OUTCOMING_DIR . $jobId); 83 84 } 84 85 unlink($jobDir);
