From 65eb29e4fec9df0f9bddaea9b372f991b3fa4ee3 Mon Sep 17 00:00:00 2001 From: Jason Hee Date: Wed, 7 Dec 2016 18:28:55 +0800 Subject: [PATCH] Modified execAsUser to use bash instead of Bourne shell --- setupLibrary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupLibrary.sh b/setupLibrary.sh index 8f15eec..4df0304 100644 --- a/setupLibrary.sh +++ b/setupLibrary.sh @@ -41,7 +41,7 @@ function execAsUser() { local username=${1} local exec_command=${2} - sudo -u "${username}" -H sh -c "${exec_command}" + sudo -u "${username}" -H bash -c "${exec_command}" } # Modify the sshd_config file