mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
code optimization (#1025)
- remove mc from Ubuntu - change archive mirrors for Ubuntu - small tweaks
This commit is contained in:
parent
474903d5af
commit
eeced862da
161 changed files with 295 additions and 175 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue