This repository has been archived on 2024-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-28 00:05:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e;
|
|
|
|
|
|
|
|
ARCH=$(uname -m)
|
|
|
|
|
2023-06-16 18:56:43 +00:00
|
|
|
cp -R /config/* /etc/apt/
|
2023-01-28 00:05:03 +00:00
|
|
|
|
2023-06-16 06:23:10 +00:00
|
|
|
cat <<-EOF > /etc/apt/sources.list
|
|
|
|
deb [trusted=yes] file:///fetch apt/
|
|
|
|
EOF
|
|
|
|
rm /etc/apt/sources.list.d/*
|
2023-01-28 00:05:03 +00:00
|
|
|
|
2023-06-16 06:23:10 +00:00
|
|
|
apt update -o Acquire::Check-Valid-Until=false
|
2023-01-28 00:05:03 +00:00
|
|
|
|
2023-02-28 18:33:59 +00:00
|
|
|
apt-get install \
|
|
|
|
--allow-downgrades \
|
2023-06-16 06:23:10 +00:00
|
|
|
-y $(cat /etc/apt/apt-pins-${ARCH}.list)
|
|
|
|
|
2023-01-28 00:05:03 +00:00
|
|
|
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;
|
2023-04-13 21:20:55 +00:00
|
|
|
|
|
|
|
echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
|