forked from public/airgap
1
0
Fork 0
airgap/scripts/apt-install

11 lines
245 B
Bash
Executable File

#!/usr/bin/env bash
set -e;
apt-get update
until apt-get install -y $(cat /etc/apt/packages.list); do
echo "apt install failed. Likely throttled. Retrying in 10 mins...";
sleep 600;
done;
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*;