Modified execAsUser to use bash instead of Bourne shell

This commit is contained in:
Jason Hee committed 2016-12-07 18:28:55 +08:00
1 parent febdd604b5
commit 65eb29e4fe
1 file changed
+1 -1
+1 -1
View File
@@ -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