From 7c8b2e16419cad87484f88ae304b77d9cce58e86 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 28 Oct 2017 11:31:32 -0500 Subject: [PATCH] introduce 'stage' --- scripts/local_facts.fact | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/local_facts.fact b/scripts/local_facts.fact index 4d9da02d6..43f8ab6f5 100755 --- a/scripts/local_facts.fact +++ b/scripts/local_facts.fact @@ -41,9 +41,20 @@ else XO_VERSION="none" fi +# upgrades return found, clean installs return 0 +# interruptions return last stage number recorded (1-9) +if [ -f /etc/iiab/iiab.env ] +then + STAGE=0 + source /etc/iiab/iiab.env + STAGE=$STAGE +else + STAGE=0 +fi ANSIBLE_VERSION=$(ansible --version|head -n 1|cut -f 2 -d " ") cat <