set umask earlier
this may be why the fix didn't actually work
@@ -29,6 +29,8 @@ case $1 in
mkdir -p $LOG_DIR
chown -R vcap:vcap $LOG_DIR
+ umask 0022
+
OVERLAYS_DIR=/var/vcap/data/baggageclaim/overlays
mkdir -p ${OVERLAYS_DIR}
@@ -47,8 +49,6 @@ case $1 in
done
<% end %>
- umask 0022
-
echo $$ > $PIDFILE
exec /var/vcap/packages/baggageclaim/bin/baggageclaim \
