karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject git commit: [KARAF-2890] Use the user shell standard shell in the wrapper karaf-service
Date Mon, 15 Sep 2014 12:22:33 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-2.3.x 9b312d487 -> 0bf3f5424


[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/0bf3f542
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/0bf3f542
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/0bf3f542

Branch: refs/heads/karaf-2.3.x
Commit: 0bf3f5424f963c593c91f6ab4a7a3a762c0e7445
Parents: 9b312d4
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Mon Sep 15 14:20:40 2014 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Mon Sep 15 14:20:40 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/0bf3f542/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 d5aed82..c4f9be7 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.


Mime
View raw message