summaryrefslogtreecommitdiff
path: root/rootfs/samizdat-update-apt-cache.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-17 17:12:11 -0400
committerAndrew Cady <d@jerkface.net>2020-08-17 17:17:25 -0400
commitafd8f44f4619f3db311881be98f9199996e57533 (patch)
tree9a74f5ba32e4ce83f7705951f72768be9d3099cd /rootfs/samizdat-update-apt-cache.sh
parent1c9ba85317f637fe913f2585680e128598d7fc9e (diff)
bump openssh
update rootfs to use bumped openssh packages
Diffstat (limited to 'rootfs/samizdat-update-apt-cache.sh')
-rwxr-xr-xrootfs/samizdat-update-apt-cache.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/rootfs/samizdat-update-apt-cache.sh b/rootfs/samizdat-update-apt-cache.sh
new file mode 100755
index 0000000..83751a3
--- /dev/null
+++ b/rootfs/samizdat-update-apt-cache.sh
@@ -0,0 +1,19 @@
1#!/bin/sh
2# TODO: Write this in fsmgr
3
4. /etc/os-release
5
6cat <<END > /etc/apt/sources.list
7deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free
8deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free
9#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free
10END
11
12set -- /var/lib/apt/lists/*_Packages
13if [ -f "$1" ]
14then
15 apt-get update || exit
16 apt-cache dumpavail | dpkg --update-avail -
17else
18 false
19fi