Add SKIP_NSSWITCH_CONF option

For #416
This commit is contained in:
Geoff Bourne
2019-11-26 21:34:56 -06:00
parent b401873298
commit 94b037428e
2 changed files with 4 additions and 2 deletions
+4
View File
@@ -16,6 +16,10 @@ if [ $(id -u) = 0 ]; then
chown -R minecraft:minecraft /data
fi
if [[ ${SKIP_NSSWITCH_CONF^^} != TRUE ]]; then
echo 'hosts: files dns' > /etc/nsswitch.conf
fi
exec su-exec minecraft:minecraft /start-configuration $@
else
exec /start-configuration $@