some minor ubuntu default cleanup

This commit is contained in:
2025-07-17 23:04:40 -05:00
parent 47ddb93fef
commit 40ab4608e2

View File

@@ -4,6 +4,7 @@
#Core framework functions... #Core framework functions...
##### #####
export PROJECT_ROOT_PATH export PROJECT_ROOT_PATH
PROJECT_ROOT_PATH="$(realpath ../)" PROJECT_ROOT_PATH="$(realpath ../)"
@@ -34,6 +35,9 @@ done
apt-get -y install git sudo dmidecode curl apt-get -y install git sudo dmidecode curl
export UBUNTU_CHECK
UBUNTU_CHECK="$(distro | grep -c Ubuntu || true)"
export IS_PHYSICAL_HOST export IS_PHYSICAL_HOST
IS_PHYSICAL_HOST="$(/usr/sbin/dmidecode -t System | grep -c Dell || true)" IS_PHYSICAL_HOST="$(/usr/sbin/dmidecode -t System | grep -c Dell || true)"
@@ -105,18 +109,16 @@ function global-installPackages() {
#Remove stuff we don't want #Remove stuff we don't want
export UBUNTU_CHECK export DEBIAN_FRONTEND="noninteractive" \
UBUNTU_CHECK="$(distro | grep -c Ubuntu || true)" && apt-get -qq --yes --purge \
remove \
if [ "$UBUNTU_CHECK" -eq 1 ]; then systemd-timesyncd \
apt-get --yes --purge remove chrony telnet inetutils-telnet chrony \
fi telnet \
inetutils-telnet \
if [ "$UBUNTU_CHECK" -eq 0 ]; then nano \
apt-get --yes --purge remove systemd-timesyncd chrony telnet inetutils-telnet multipath-tools \
fi || true
#export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes -o Dpkg::Options::="--force-confold" --purge remove nano
# add stuff we want # add stuff we want