changes flag order for chmod to work on bsd

This commit is contained in:
Sascha Marcel Schmidt 2016-08-31 15:59:55 +02:00 committed by Sascha Marcel Schmidt
parent 702c9b082f
commit f38bd436f0

View File

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