summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-30 12:17:42 -0400
committerAndrew Cady <d@jerkface.net>2020-05-30 12:17:42 -0400
commit6473a886034d6fd16ab3327e3bfe8fa9a13eed06 (patch)
tree956c035d46d2f6c0bce976f2c0497843171f0a8b
parentaecf0c25de6fb2154105ed2de433e6dc299e0f15 (diff)
patchroot.sh: download less (but still some, for demonstration)
-rwxr-xr-x[-rw-r--r--]patchroot.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/patchroot.sh b/patchroot.sh
index 2345f77..76eb26a 100644..100755
--- a/patchroot.sh
+++ b/patchroot.sh
@@ -5,14 +5,19 @@ sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts
5 5
6. /etc/os-release 6. /etc/os-release
7 7
8# TODO: Write this in fsmgr
8cat <<END > /etc/apt/sources.list 9cat <<END > /etc/apt/sources.list
9deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free 10deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free
10deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free 11deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free
11#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free 12#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free
12END 13END
13 14
14#apt-get update 15set -- /var/lib/apt/lists/*_Packages
15cat /var/lib/apt/lists/*_Packages | dpkg --update-avail - 16if [ -f "$1" ]
16 17then
17#apt-get -yd install baresip 18 # apt database validity demonstration
18apt-mark install baresip 19 apt-get update
20 apt-cache dumpavail | dpkg --update-avail -
21 apt-get -yd install iso-codes # baresip
22 apt-mark install baresip
23fi