Commit cba5e6b8 authored by Torsten Grote's avatar Torsten Grote

Change system time to snapshot time, so it won't be counted as expired

parent 5b7ed6c2
Pipeline #3027 failed with stages
in 29 seconds
......@@ -2,11 +2,17 @@
set -e
set -x
# set system time, so we can use snapshot packages
DATETIME="20190201T000000Z"
DATE=$(echo ${DATETIME} | cut -dT -f1)
TIME=$(echo ${DATETIME} | cut -dT -f2)
TIME="${TIME:0:2}:${TIME:2:2}:${TIME:4:2}"
sudo date +%Y%m%d -s "${DATE} ${TIME}"
# use snapshot repos for deterministic package versions
DATE="20190206T120000Z"
cat << EOF > /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/${DATE}/ stretch main
deb http://snapshot.debian.org/archive/debian-security/${DATE}/ stretch/updates main
deb http://snapshot.debian.org/archive/debian/${DATETIME}/ stretch main
deb http://snapshot.debian.org/archive/debian-security/${DATETIME}/ stretch/updates main
EOF
# update package sources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment