Author: jbonofre
Date: Tue Oct 8 11:46:31 2013
New Revision: 1530240
URL: http://svn.apache.org/r1530240
Log:
[KARAF-2502] Fix the RUN_AS_GROUP variable in the wrapper
Modified:
karaf/branches/karaf-2.3.x/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service
Modified:
karaf/branches/karaf-2.3.x/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service
URL:
http://svn.apache.org/viewvc/karaf/branches/karaf-2.3.x/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service?rev=1530240&r1=1530239&r2=1530240&view=diff
==============================================================================
---
karaf/branches/karaf-2.3.x/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service
(original)
+++
karaf/branches/karaf-2.3.x/shell/wrapper/src/main/resources/org/apache/karaf/shell/wrapper/unix/karaf-service
Tue Oct 8 11:46:31 2013
@@ -315,7 +315,7 @@ checkUser() {
RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
if [ "X$RUN_AS_GROUP" = "X" ]
then
- RUN_AS_GROUP=RUN_AS_USER
+ RUN_AS_GROUP=$RUN_AS_USER
fi
touch $LOCKFILE
chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE