Add SKIP_NSSWITCH_CONF option

For #416
This commit is contained in:
Geoff Bourne committed 2019-11-26 21:34:56 -06:00
1 parent b401873298
commit 94b037428e
2 files changed
+4 -2

No files matched your search

+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 $@