Skip to content

Commit bb73a8e

Browse files
committed
Only chown if needed
1 parent 4348175 commit bb73a8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/dev+mongo.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
mongod &
44
MONGOD_PID=$!
55

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

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

0 commit comments

Comments
 (0)