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 37d6eb3 commit 96a7fd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/dev+mongo.sh
100755 → 100644
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 96a7fd9

Please sign in to comment.