diff options
author | Yves-Alexis Perez <corsac@debian.org> | 2019-01-02 10:45:36 +0100 |
---|---|---|
committer | Yves-Alexis Perez <corsac@debian.org> | 2019-01-02 11:07:05 +0100 |
commit | 918094fde55fa0dbfd59a5f88d576efb513a88db (patch) | |
tree | 61e31656c60a6cc928c50cd633568043673e2cbd /src/sec-updater/sec-updater.sh | |
parent | 69bc96f6b0b388d35e983f8d27224fa49d92918c (diff) | |
download | vyos-strongswan-918094fde55fa0dbfd59a5f88d576efb513a88db.tar.gz vyos-strongswan-918094fde55fa0dbfd59a5f88d576efb513a88db.zip |
New upstream version 5.7.2
Diffstat (limited to 'src/sec-updater/sec-updater.sh')
-rwxr-xr-x | src/sec-updater/sec-updater.sh | 58 |
1 files changed, 54 insertions, 4 deletions
diff --git a/src/sec-updater/sec-updater.sh b/src/sec-updater/sec-updater.sh index ca7b89841..16e561459 100755 --- a/src/sec-updater/sec-updater.sh +++ b/src/sec-updater/sec-updater.sh @@ -4,11 +4,11 @@ DIR="/etc/pts" DISTS_DIR="$DIR/dists" DATE=`date +%Y%m%d-%H%M` UBUNTU="http://security.ubuntu.com/ubuntu" -UBUNTU_VERSIONS="xenial" +UBUNTU_VERSIONS="bionic xenial" UBUNTU_DIRS="main multiverse restricted universe" UBUNTU_ARCH="binary-amd64" DEBIAN="http://security.debian.org" -DEBIAN_VERSIONS="jessie wheezy" +DEBIAN_VERSIONS="stretch jessie wheezy" DEBIAN_DIRS="main contrib non-free" DEBIAN_ARCH="binary-amd64 binary-armhf" RASPIAN="http://archive.raspberrypi.org/debian" @@ -48,8 +48,14 @@ do mkdir -p $v-updates/$a for d in $DEBIAN_DIRS do - wget -nv $DEBIAN/dists/$v/updates/$d/$a/Packages.bz2 -O $v-updates/$a/Packages-$d.bz2 - bunzip2 -f $v-updates/$a/Packages-$d.bz2 + if [ $v = "stretch" ] + then + wget -nv $DEBIAN/dists/$v/updates/$d/$a/Packages.xz -O $v-updates/$a/Packages-$d.xz + unxz -f $v-updates/$a/Packages-$d.xz + else + wget -nv $DEBIAN/dists/$v/updates/$d/$a/Packages.bz2 -O $v-updates/$a/Packages-$d.bz2 + bunzip2 -f $v-updates/$a/Packages-$d.bz2 + fi done done done @@ -71,6 +77,28 @@ done # Run sec-updater in distribution information +for f in bionic-security/binary-amd64/* +do + echo "security: $f" + $CMD --os "Ubuntu 18.04" --arch "x86_64" --file $f --security \ + --uri $UBUNTU >> $CMD_LOG 2>&1 + if [ $? -eq 0 ] + then + DEL_LOG=0 + fi +done + +for f in bionic-updates/binary-amd64/* +do + echo "updates: $f" + $CMD --os "Ubuntu 18.04" --arch "x86_64" --file $f \ + --uri $UBUNTU >> $CMD_LOG 2>&1 + if [ $? -eq 0 ] + then + DEL_LOG=0 + fi +done + for f in xenial-security/binary-amd64/* do echo "security: $f" @@ -93,6 +121,17 @@ do fi done +for f in stretch-updates/binary-amd64/* +do + echo "security: $f" + $CMD --os "Debian 9.0" --arch "x86_64" --file $f --security \ + --uri $DEBIAN >> $CMD_LOG 2>&1 + if [ $? -eq 0 ] + then + DEL_LOG=0 + fi +done + for f in jessie-updates/binary-amd64/* do echo "security: $f" @@ -115,6 +154,17 @@ do fi done +for f in stretch-updates/binary-armhf/* +do + echo "security: $f" + $CMD --os "Debian 9.0" --arch "armhf" --file $f --security \ + --uri $DEBIAN >> $CMD_LOG 2>&1 + if [ $? -eq 0 ] + then + DEL_LOG=0 + fi +done + for f in jessie-updates/binary-armhf/* do echo "security: $f" |