summaryrefslogtreecommitdiff
path: root/src/sec-updater/sec-updater.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sec-updater/sec-updater.sh')
-rwxr-xr-xsrc/sec-updater/sec-updater.sh58
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"