Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Solving gerrit umask post fork

Change-Id: Ie1faa344fd8de77a674e05d369d22603df89ccb6
  • Loading branch information...
commit 3bacccf67486bc0f8e444ed12a60f2ca7f87d534 1 parent 9deb4e9
@adamhjk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cookbooks/gerrit/templates/default/gerrit.erb
View
4 cookbooks/gerrit/templates/default/gerrit.erb
@@ -278,8 +278,6 @@ ulimit -v unlimited ; # virtual memory
ulimit -x >/dev/null 2>&1 && ulimit -x unlimited ; # file locks
-umask 0022
-
#####################################################
# This is how the Gerrit server will be started
#####################################################
@@ -356,6 +354,7 @@ case "$ACTION" in
if start-stop-daemon -S -b $CH_USER \
-p "$GERRIT_PID" -m \
-d "$GERRIT_SITE" \
+ -k 0022 \
-a "$RUN_EXEC" -- $RUN_Arg1 "$RUN_Arg2" $RUN_Arg3 $RUN_ARGS
then
: OK
@@ -382,6 +381,7 @@ case "$ACTION" in
chown $GERRIT_USER "$GERRIT_PID"
su - $GERRIT_USER -c "
JAVA='$JAVA' ; export JAVA ;
+ umask 0022 ;
$RUN_EXEC $RUN_Arg1 '$RUN_Arg2' $RUN_Arg3 $RUN_ARGS </dev/null >/dev/null 2>&1 &
PID=\$! ;
disown ;
Please sign in to comment.
Something went wrong with that request. Please try again.