2
0
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:
Neraud 2018-08-22 15:37:43 +02:00
parent f7e6511f23
commit d5caa85c06

View File

@ -177,7 +177,7 @@ def generate_git_command(repo_conf, git_command):
quote(repo_conf['path']), quote(repo_conf['path']),
quote(conf['git_path']), quote(conf['git_path']),
' '.join(git_command)) ' '.join(git_command))
cmd = ['su', '-', repo_conf['user'], '-c', shell_cmd] cmd = ['su', '-', repo_conf['user'], '-s', '/bin/sh', '-c', shell_cmd]
return cmd return cmd