Skip to content

Commit a364ba5

Browse files
authored
Merge pull request #141 from jsknnr/dev
also accept 0:10000 for external config file
2 parents 514dab2 + 1a1885f commit a364ba5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

container/enshrouded_server_external.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
],
7575
"bannedAccounts": [
7676
]
77-
}
77+
}

container/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ else
3636
echo "$(timestamp) ERROR: EXTERNAL_CONFIG set but config not found at $ENSHROUDED_CONFIG"
3737
exit 1
3838
fi
39-
if [ "$(stat -c '%u:%g' "$ENSHROUDED_CONFIG")" != "10000:10000" ]; then
40-
echo "$(timestamp) ERROR: External config ownership must be 10000:10000"
39+
if [ "$(stat -c '%u:%g' "$ENSHROUDED_CONFIG")" != "10000:10000" ] && [ "$(stat -c '%u:%g' "$ENSHROUDED_CONFIG")" != "0:10000" ]; then
40+
echo "$(timestamp) ERROR: External config ownership must be 10000:10000 or 0:10000"
4141
echo "$(timestamp) INFO: Current ownership is $(stat -c '%u:%g' "$ENSHROUDED_CONFIG")"
4242
echo "$(timestamp) INFO: Adjust ownership and restart the container (e.g. sudo chown 10000:10000 /path/to/your/enshrouded_server.json)"
4343
exit 1

0 commit comments

Comments
 (0)