Update ubuntu_setup.sh

This commit is contained in:
tteckster 2022-01-27 14:25:28 -05:00 committed by GitHub
parent 8bf0e369c3
commit afc52f825c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,6 @@ function msg() {
echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m"
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
locale-gen >/dev/null locale-gen >/dev/null
apt-get -y purge openssh-{client,server} >/dev/null
apt-get autoremove >/dev/null
echo -e "${CHECKMARK} \e[1;92m Updating Container OS \e[0m" echo -e "${CHECKMARK} \e[1;92m Updating Container OS \e[0m"
apt update &>/dev/null apt update &>/dev/null
@ -52,4 +50,4 @@ systemctl daemon-reload
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m" echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m"
rm -rf /ubuntu_setup.sh /var/{cache,log}/* /var/lib/apt/lists/* rm -rf /ubuntu_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*