2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-16 01:57:08 +00:00

fix setup sudoers

This commit is contained in:
Pratik Vyas 2014-07-16 10:21:48 +05:30
parent 65560034b7
commit 99e0a41b88

View File

@ -98,8 +98,8 @@ def update_bench():
def setup_sudoers():
with open('/etc/sudoers.d/frappe', 'w') as f:
f.write("{user} ALL=(ALL) NOPASSWD: {supervisorctl} restart frappe\:\n".format(
user=getpass.getuser()),
supervisorctl=subprocess.check_output('which supervisorctl', shell=True).strip())
user=getpass.getuser(),
supervisorctl=subprocess.check_output('which supervisorctl', shell=True).strip()))
def setup_logging(bench='.'):
if os.path.exists(os.path.join(bench, 'logs')):