rocketeers / rocketeer

Send your projects up in the clouds
http://rocketeer.autopergamene.eu/
MIT License
2.66k stars 217 forks source link

sudo not recognised for Clone strategies #712

Open ColmMcBarron opened 8 years ago

ColmMcBarron commented 8 years ago

In the clone/rsync strategies when you need to use sudo to create the directories, the rsyncTo method does not check and add any options when sudo is required in the remote.

I had to create a custom strategy to deal with this (and other options), this is the sample code I used when subclassing in the 'rsyncTo' method, but not sure if this is optimal for a more global change:

$options['--rsync-path'] = "sudo rsync";

Anahkiasen commented 7 years ago

Does adding rsync to the sudoed commands work?