From afd8f44f4619f3db311881be98f9199996e57533 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 17 Aug 2020 17:12:11 -0400 Subject: bump openssh update rootfs to use bumped openssh packages --- rootfs/samizdat-update-apt-cache.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 rootfs/samizdat-update-apt-cache.sh (limited to 'rootfs/samizdat-update-apt-cache.sh') 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 @@ +#!/bin/sh +# TODO: Write this in fsmgr + +. /etc/os-release + +cat < /etc/apt/sources.list +deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free +deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free +#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free +END + +set -- /var/lib/apt/lists/*_Packages +if [ -f "$1" ] +then + apt-get update || exit + apt-cache dumpavail | dpkg --update-avail - +else + false +fi -- cgit v1.2.3