Merge pull request #766 from torvitas/fixes-chmod-for-bsd

changes flag order for chmod to work on bsd
This commit is contained in:
Anton Medvedev 2016-09-01 15:04:41 +07:00 committed by GitHub
commit fa46d3f58f

View File

@ -315,11 +315,11 @@ task('deploy:writable', function () {
}
}
} else {
run("$sudo chmod 777 -R $dirs");
run("$sudo chmod -R 777 $dirs");
}
// If we are not on OS-X and have no ACL installed use POSIX
} else {
run("$sudo chmod 777 -R $dirs");
run("$sudo chmod -R 777 $dirs");
}
} catch (\RuntimeException $e) {
$formatter = \Deployer\Deployer::get()->getHelper('formatter');