You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2014/10/01 12:59:03 UTC

git commit: [KARAF-2890] Use more flexible su command in the wrapper

Repository: karaf
Updated Branches:
  refs/heads/master 8cedced5b -> e6121cf0f


[KARAF-2890] Use more flexible su command in the wrapper


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/e6121cf0
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/e6121cf0
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/e6121cf0

Branch: refs/heads/master
Commit: e6121cf0fc8327f7027538433317f58427cbddb3
Parents: 8cedced
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Wed Oct 1 12:58:31 2014 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Wed Oct 1 12:58:31 2014 +0200

----------------------------------------------------------------------
 .../resources/org/apache/karaf/wrapper/internal/unix/karaf-service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/e6121cf0/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
----------------------------------------------------------------------
diff --git a/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service b/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
index 9f1f004..db08deb 100644
--- a/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
+++ b/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/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.