Skip to content

Commit 3bf36bd

Browse files
committed
Replace absolut applications link by relative
1 parent 56d4f75 commit 3bf36bd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

module/DeployAgent/src/Task/TaskManager.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,16 @@ public function activate(EventInterface $event)
290290
$message = 'Starting ' . $application->getName() . ' (' . $build . ')';
291291
$this->getLogger()->info($message);
292292

293+
$pwd = getcwd();
294+
chdir($application->getPath() . DIRECTORY_SEPARATOR);
295+
293296
symlink(
294-
$application->getPath() . DIRECTORY_SEPARATOR . $build,
295-
$application->getPath() . DIRECTORY_SEPARATOR . 'current'
297+
$build,
298+
'current'
296299
);
297300

301+
chdir($pwd);
302+
298303
$application->getEventManager()->trigger($application::EVENT_AFTER_ACTIVATE);
299304

300305
$message = $application->getName() . ' (' . $build . ') has successfully started';

0 commit comments

Comments
 (0)