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:23:55 GMT
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é <jbonofre@apache.org>
Authored: Mon Sep 15 14:20:40 2014 +0200
Committer: Jean-Baptiste Onofré <jbonofre@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.


Mime
View raw message