directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1770584 - /directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/bin/install.sh
Date Sun, 20 Nov 2016 20:23:56 GMT
Author: seelmann
Date: Sun Nov 20 20:23:55 2016
New Revision: 1770584

URL: http://svn.apache.org/viewvc?rev=1770584&view=rev
Log:
DIRSERVER-2173: Fix usage of RUN_AS_GROUP variable in bin installer

Modified:
    directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/bin/install.sh

Modified: directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/bin/install.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/bin/install.sh?rev=1770584&r1=1770583&r2=1770584&view=diff
==============================================================================
--- directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/bin/install.sh
(original)
+++ directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/bin/install.sh
Sun Nov 20 20:23:55 2016
@@ -145,7 +145,7 @@ fi
 GROUP=`eval "if grep -q $RUN_AS_GROUP /etc/group; then echo "$RUN_AS_GROUP"; else echo "";
fi"`
 
 # Create the group if it does not exist
-if [ ! "X$RUN_AS_GROUP" = "XGROUP" ]
+if [ ! "X$RUN_AS_GROUP" = "X$GROUP" ]
 then
 	/usr/sbin/groupadd $RUN_AS_GROUP >/dev/null 2>&1 || :
 	verifyExitCode
@@ -158,6 +158,6 @@ then
 fi
 
 # Modifying owner
-chown -R $RUN_AS_USER:$RUN_AS_USER $APACHEDS_HOME_DIRECTORY
-chown -R $RUN_AS_USER:$RUN_AS_USER $INSTANCES_HOME_DIRECTORY
-chown $RUN_AS_USER:$RUN_AS_USER $STARTUP_SCRIPT_DIRECTORY/apacheds-$APACHEDS_VERSION-$DEFAULT_INSTANCE_NAME
+chown -R $RUN_AS_USER:$RUN_AS_GROUP $APACHEDS_HOME_DIRECTORY
+chown -R $RUN_AS_USER:$RUN_AS_GROUP $INSTANCES_HOME_DIRECTORY
+chown $RUN_AS_USER:$RUN_AS_GROUP $STARTUP_SCRIPT_DIRECTORY/apacheds-$APACHEDS_VERSION-$DEFAULT_INSTANCE_NAME



Mime
View raw message