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

This commit is contained in:
Bram Kelchtermans 2024-07-07 16:18:47 +02:00
parent c3c623f1d1
commit 653ee01ec8
3 changed files with 16 additions and 2 deletions

View File

@ -1,2 +1,12 @@
#!/bin/bash #!/bin/bash
IP="192.168.179.107"
# Ping the IP address to check if it is reachable
if ping -c 1 $IP &> /dev/null
then
echo 'Acquire::http { Proxy "http://192.168.179.107:3142"; }' | sudo tee -a /etc/apt/apt.conf.d/proxy echo 'Acquire::http { Proxy "http://192.168.179.107:3142"; }' | sudo tee -a /etc/apt/apt.conf.d/proxy
else
echo "IP $IP is not reachable. Exiting."
exit 1
fi

1
gui/postman.sh Executable file
View File

@ -0,0 +1 @@
snap install postman

View File

@ -7,3 +7,6 @@ chmod +x ./gui/spotify.sh
chmod +x ./gui/bluemail.sh chmod +x ./gui/bluemail.sh
./gui/bluemail.sh ./gui/bluemail.sh
chmod +x ./gui/postman.sh
./gui/postman.sh