Skip to content
Snippets Groups Projects
Verified Commit 7fbc9a2b authored by Torsten Grote's avatar Torsten Grote
Browse files

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

parent 5b7ed6c2
No related merge requests found
Pipeline #3028 failed
...@@ -2,11 +2,18 @@ ...@@ -2,11 +2,18 @@
set -e set -e
set -x 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}"
whoami
date +%Y%m%d -s "${DATE} ${TIME}"
# use snapshot repos for deterministic package versions # use snapshot repos for deterministic package versions
DATE="20190206T120000Z"
cat << EOF > /etc/apt/sources.list cat << EOF > /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/${DATE}/ stretch main deb http://snapshot.debian.org/archive/debian/${DATETIME}/ stretch main
deb http://snapshot.debian.org/archive/debian-security/${DATE}/ stretch/updates main deb http://snapshot.debian.org/archive/debian-security/${DATETIME}/ stretch/updates main
EOF EOF
# update package sources # update package sources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment