Commit e83a85b6 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible: on systems running in the future: reset date to real date at the...

reproducible: on systems running in the future: reset date to real date at the beginning of deployments, and reset back to the future at the end
parent b8d27501
...@@ -15,6 +15,16 @@ explain() { ...@@ -15,6 +15,16 @@ explain() {
echo "--------------------------------------------" echo "--------------------------------------------"
explain "$(date) - begin deployment update." explain "$(date) - begin deployment update."
# run update at current date
case $HOSTNAME in
profitbricks-build5-amd64|profitbricks-build6-amd64)
# set correct date
sudo ntpdate -b de.pool.ntp.org
;;
*) ;;
esac
# #
# set up users and groups # set up users and groups
# #
...@@ -496,3 +506,10 @@ rm -f $TMPFILE ...@@ -496,3 +506,10 @@ rm -f $TMPFILE
sudo touch $STAMP # so on the next run, only configs newer than this file will be updated sudo touch $STAMP # so on the next run, only configs newer than this file will be updated
explain "$(date) - finished deployment." explain "$(date) - finished deployment."
# set time back to the future
case $HOSTNAME in
profitbricks-build5-amd64|profitbricks-build6-amd64)
sudo date --set="+398 days +6 hours + 23 minutes"
;;
*) ;;
esac
Supports Markdown
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