fabtools / fabtools

Tools for writing awesome Fabric files
http://fabtools.readthedocs.org/
BSD 2-Clause "Simplified" License
1.25k stars 206 forks source link

Use fabtools with shell = False #228

Open julioo opened 10 years ago

julioo commented 10 years ago

Hello,

Is it possible to use Fabtools, functions like files_is_file but using env shell = False. My sudo forbids me to use : /bin/bash -l -c [ -f "/etc/cluster/cluster.conf" ]

Thank you

avances123 commented 10 years ago

+1 , in my case, the sysadmin put in sudoers

project ALL=(root)NOPASSWD: /usr/bin/supervisorctl * project

My failing line

fabtools.supervisor.restart_process('project')