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

parent 5b7ed6c2
Pipeline #3026 failed with stages
in 30 seconds
......@@ -2,11 +2,17 @@
set -e
set -x
# set system time, so we can use snapshot packages
DATE=$(echo ${DATETIME} | cut -dT -f1)
TIME=$(echo ${DATETIME} | cut -dT -f2)
date +%Y%m%d -s "${DATE} ${TIME}"
# use snapshot repos for deterministic package versions
cat << EOF > /etc/apt/sources.list
deb${DATE}/ stretch main
deb${DATE}/ stretch/updates main
deb${DATETIME}/ stretch main
deb${DATETIME}/ stretch/updates main
# 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