Separated autopause config file location to keep scripts read-only

This commit is contained in:
Geoff Bourne
2020-07-26 13:22:07 -05:00
parent aebe35c9d4
commit 49d9f4a89d
3 changed files with 9 additions and 12 deletions
-5
View File
@@ -36,11 +36,6 @@ 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
if [[ ${SKIP_NSSWITCH_CONF^^} != TRUE ]]; then
echo 'hosts: files dns' > /etc/nsswitch.conf
fi