Autopause functionality (#531)

This commit is contained in:
Michael Kirsch authored and GitHub committed 2020-05-20 08:17:58 -05:00
1 parent ede58d9159
commit 71a7afab17
13 files changed
+324 -10

No files matched your search

+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