Skip to content

Commit

Permalink
Only chown if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfr committed Jan 30, 2018
1 parent 4348175 commit bb73a8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/dev+mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
mongod &
MONGOD_PID=$!

chown nobody:nobody -R $SCITRAN_PERSISTENT_DATA_PATH
if [ "$(stat -c %U:%G $SCITRAN_PERSISTENT_DATA_PATH)" != "nobody:nobody" ]; then
chown nobody:nobody -R $SCITRAN_PERSISTENT_DATA_PATH
fi

exec unitd --control "*:8080" --no-daemon --log /dev/stdout

0 comments on commit bb73a8e

Please sign in to comment.