mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fixed error when using a user which doesn't have a default shell (like the default munin user on Debian/Ubuntu)
This commit is contained in:
parent
f7e6511f23
commit
d5caa85c06
@ -177,7 +177,7 @@ def generate_git_command(repo_conf, git_command):
|
||||
quote(repo_conf['path']),
|
||||
quote(conf['git_path']),
|
||||
' '.join(git_command))
|
||||
cmd = ['su', '-', repo_conf['user'], '-c', shell_cmd]
|
||||
cmd = ['su', '-', repo_conf['user'], '-s', '/bin/sh', '-c', shell_cmd]
|
||||
return cmd
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user