mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-20 02:45:23 +00:00
Autopause functionality (#531)
This commit is contained in:
@@ -36,6 +36,14 @@ if [ $(id -u) = 0 ]; then
|
||||
chown -R ${runAsUser}:${runAsGroup} /data
|
||||
fi
|
||||
|
||||
if [[ $(stat -c "%u" /autopause) != $UID ]]; then
|
||||
log "Changing ownership of /autopause to $UID ..."
|
||||
chown -R ${runAsUser}:${runAsGroup} /autopause
|
||||
fi
|
||||
|
||||
ln -fs $(tty) /tmp/terminal-mc
|
||||
chmod 777 /tmp/terminal-mc
|
||||
|
||||
if [[ ${SKIP_NSSWITCH_CONF^^} != TRUE ]]; then
|
||||
echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user