|
|
@ -62,6 +62,12 @@ REQUIRED_PACKAGES=( |
|
|
|
|
|
|
|
[ $(id -u) -eq 0 ] && echo 'normal user required' && exit -1 |
|
|
|
|
|
|
|
echo "# configure apt sources to the mithril's" |
|
|
|
echo "========================================" |
|
|
|
echo "deb http://debian.mithril.re/debian bullseye main contrib non-free" | sudo tee /etc/apt/sources.list |
|
|
|
echo "deb http://debian.mithril.re/debian bullseye-updates main contrib non-free" | sudo tee -a /etc/apt/sources.list |
|
|
|
echo "deb http://debian.mithril.re/debian-security/ bullseye-security main contrib non-free" | sudo tee -a /etc/apt/sources.list |
|
|
|
|
|
|
|
echo "# updating repositories" |
|
|
|
echo "===================" |
|
|
|
if [[ $(date --date='-12 hours' +%s) -gt $(date -d "$(stat -c %y /var/lib/apt/lists/partial)" +%s) ]]; then |
|
|
|