Browse Source

mithril apt repository

bookworm
pvincent 2 years ago
parent
commit
0fcdfe6788
  1. 6
      src/main

6
src/main

@ -62,6 +62,12 @@ REQUIRED_PACKAGES=(
[ $(id -u) -eq 0 ] && echo 'normal user required' && exit -1 [ $(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 "# updating repositories"
echo "===================" echo "==================="
if [[ $(date --date='-12 hours' +%s) -gt $(date -d "$(stat -c %y /var/lib/apt/lists/partial)" +%s) ]]; then if [[ $(date --date='-12 hours' +%s) -gt $(date -d "$(stat -c %y /var/lib/apt/lists/partial)" +%s) ]]; then

Loading…
Cancel
Save