refactor: Update apt-cacher setup script to use IP address instead of hostname for the proxy server

This commit is contained in:
2024-07-06 19:25:54 +02:00
parent 25141b254e
commit e06d0908af
4 changed files with 1204 additions and 2 deletions

View File

@@ -36,7 +36,18 @@ configure_apt_cacher() {
echo "Configuring apt-cacher..."
sudo chmod +x ./apt-cacher/setup.sh
./apt-cacher/setup.sh
}
}
install_node_if_no_gui() {
if [ -z "$XDG_CURRENT_DESKTOP" ]; then
echo "No GUI detected, installing Node..."
sudo chmod +x ./teleport/install-node.sh
./teleport/install-node.sh
else
echo "GUI detected, skipping Node installation."
fi
}
configure_terminal
configure_apt_cacher
install_node_if_no_gui