force use of sh on remote server and make directory ownership check more portable

This commit is contained in:
hrakotobe
2014-05-09 17:53:35 +02:00
parent 23b59869ec
commit 47b089cb3e
4 changed files with 40 additions and 8 deletions
@@ -79,6 +79,10 @@ class RsyncTask extends AbstractTask implements IsReleaseAware
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
. '/' . $releasesDirectory
. '/' . $this->getConfig()->getReleaseId();
Console::log('Deploy to ' . $deployToDirectory);
$resultFetch = $this->runCommandRemote('ls -ld current | cut -d"/" -f2', $currentRelease);
if ($resultFetch && $currentRelease) {