Don't overwrite TERM in containers (#2027)

Don't overwrite $TERM env-var in container images, the terminal (provided by dockerd or whatever) will set it correctly. the current setting causes issues in e.g. vim where some operations (like ctrl+left/ctrl+right) completely butcher the file being edited.
This commit is contained in:
Andy Caldwell 2022-01-29 02:47:03 +00:00 коммит произвёл GitHub
Родитель dc643b4729
Коммит 098841f2d7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -17,9 +17,9 @@
],
"PostInstallScripts": [
{
"Path": "postinstallscripts/core-container/cleanup-and-set-term.sh"
"Path": "postinstallscripts/core-container/cleanup.sh"
}
]
}
]
}
}

Просмотреть файл

@ -4,5 +4,3 @@ rm -rf /boot/*
rm -rf /usr/src/
rm -rf /home/*
rm -rf /var/log/*
# set TERM to linux
echo "export TERM=linux" >> /etc/bash.bashrc