From d5caa85c06e1a811febf0c1ffd83e33772d31696 Mon Sep 17 00:00:00 2001 From: Neraud Date: Wed, 22 Aug 2018 15:37:43 +0200 Subject: [PATCH] Fixed error when using a user which doesn't have a default shell (like the default munin user on Debian/Ubuntu) --- plugins/git/git_commit_behind | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/git_commit_behind b/plugins/git/git_commit_behind index 759fd902..e77d3ed3 100755 --- a/plugins/git/git_commit_behind +++ b/plugins/git/git_commit_behind @@ -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