Autopause functionality (#531)

This commit is contained in:
Michael Kirsch
2020-05-20 15:17:58 +02:00
committed by GitHub
parent ede58d9159
commit 71a7afab17
13 changed files with 324 additions and 10 deletions
+8
View File
@@ -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