diff options
author | Andrew Cady <d@jerkface.net> | 2020-08-17 17:12:11 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-17 17:17:25 -0400 |
commit | afd8f44f4619f3db311881be98f9199996e57533 (patch) | |
tree | 9a74f5ba32e4ce83f7705951f72768be9d3099cd /rootfs/samizdat-update-apt-cache.sh | |
parent | 1c9ba85317f637fe913f2585680e128598d7fc9e (diff) |
bump openssh
update rootfs to use bumped openssh packages
Diffstat (limited to 'rootfs/samizdat-update-apt-cache.sh')
-rwxr-xr-x | rootfs/samizdat-update-apt-cache.sh | 19 |
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 | |||
6 | cat <<END > /etc/apt/sources.list | ||
7 | deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free | ||
8 | deb 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 | ||
10 | END | ||
11 | |||
12 | set -- /var/lib/apt/lists/*_Packages | ||
13 | if [ -f "$1" ] | ||
14 | then | ||
15 | apt-get update || exit | ||
16 | apt-cache dumpavail | dpkg --update-avail - | ||
17 | else | ||
18 | false | ||
19 | fi | ||