From 55408e77aeec52bb06a09a34f2caaf459f35e725 Mon Sep 17 00:00:00 2001 From: Joerg Kastning Date: Tue, 12 Dec 2017 13:50:09 +0100 Subject: [PATCH] Calculate values for DATE variables --- create_vars.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create_vars.sh b/create_vars.sh index 7722d78..e264a7f 100755 --- a/create_vars.sh +++ b/create_vars.sh @@ -6,10 +6,10 @@ ADVISORIES='/data/jka_dev/rhel-patchmanagement/new_advisories.txt' CURRENT_PATCH_SET="/data/jka_dev/rhel-patchmanagement/patch_set_`date +%Y-%m-%d.txt`" VARS='/data/jka_dev/rhel-patchmanagement/vars/main.yml' MAIL_TEXT='/data/jka_dev/rhel-patchmanagement/mail_text.txt' -DATE1="2017-12-12T04:20" -DATE2="2017-12-19T04:20" -DATE3="2017-12-26T04:20" -DATE4="2017-12-27T04:20" +DATE1="`date --iso -d '+7 days'`T04:20" +DATE2="`date --iso -d '+14 days'`T04:20" +DATE3="`date --iso -d '+21 days'`T04:20" +DATE4="`date --iso -d '+22 days'`T04:20" # Functions ################################################################## get_advisories() {