code optimization (#1025)

- remove mc from Ubuntu
- change archive mirrors for Ubuntu
- small tweaks
This commit is contained in:
tteckster 2023-02-06 09:36:01 -05:00 committed by GitHub
parent 474903d5af
commit eeced862da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
161 changed files with 295 additions and 175 deletions

View file

@ -211,10 +211,10 @@ if [[ $ADMINER == "Y" ]]; then
fi
echo "export TERM='xterm-256color'" >>/root/.bashrc
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
chmod -x /etc/update-motd.d/*
if ! getent shadow root | grep -q "^root:[^\!*]"; then
msg_info "Customizing Container"
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
touch ~/.hushlogin
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
mkdir -p $(dirname $GETTY_OVERRIDE)
cat <<EOF >$GETTY_OVERRIDE