diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-30 12:17:42 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-30 12:17:42 -0400 |
commit | 6473a886034d6fd16ab3327e3bfe8fa9a13eed06 (patch) | |
tree | 956c035d46d2f6c0bce976f2c0497843171f0a8b /patchroot.sh | |
parent | aecf0c25de6fb2154105ed2de433e6dc299e0f15 (diff) |
patchroot.sh: download less (but still some, for demonstration)
Diffstat (limited to 'patchroot.sh')
-rwxr-xr-x[-rw-r--r--] | patchroot.sh | 15 |
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 | ||
8 | cat <<END > /etc/apt/sources.list | 9 | cat <<END > /etc/apt/sources.list |
9 | deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free | 10 | deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free |
10 | deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free | 11 | deb 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 |
12 | END | 13 | END |
13 | 14 | ||
14 | #apt-get update | 15 | set -- /var/lib/apt/lists/*_Packages |
15 | cat /var/lib/apt/lists/*_Packages | dpkg --update-avail - | 16 | if [ -f "$1" ] |
16 | 17 | then | |
17 | #apt-get -yd install baresip | 18 | # apt database validity demonstration |
18 | apt-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 | ||
23 | fi | ||