Repository: karaf Updated Branches: refs/heads/karaf-2.x 79d85bda2 -> ee50ce610
[KARAF-2890] Use the user shell standard shell in the wrapper karaf-service Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/ee50ce61 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/ee50ce61 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/ee50ce61 Branch: refs/heads/karaf-2.x Commit: ee50ce610e910583225c9564df5c23da402dcee6 Parents: 79d85bd Author: Jean-Baptiste Onofré <jbono...@apache.org> Authored: Mon Sep 15 14:20:40 2014 +0200 Committer: Jean-Baptiste Onofré <jbono...@apache.org> Committed: Mon Sep 15 14:23:45 2014 +0200 ---------------------------------------------------------------------- .../resources/org/apache/karaf/shell/wrapper/unix/karaf-service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/ee50ce61/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service ---------------------------------------------------------------------- diff --git a/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service b/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service index 9f1f004..8806bed 100755 --- a/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service +++ b/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service @@ -324,7 +324,7 @@ checkUser() { # Still want to change users, recurse. This means that the user will only be # prompted for a password once. - su -m $RUN_AS_USER -s /bin/sh -c "$REALPATH $1" + su - -m $RUN_AS_USER -c "$REALPATH $1" RETVAL=$? # Now that we are the original user again, we may need to clean up the lock file.