mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
introduce 'stage'
This commit is contained in:
parent
47c497ca09
commit
7c8b2e1641
1 changed files with 11 additions and 0 deletions
|
@ -41,9 +41,20 @@ else
|
||||||
XO_VERSION="none"
|
XO_VERSION="none"
|
||||||
fi
|
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 " ")
|
ANSIBLE_VERSION=$(ansible --version|head -n 1|cut -f 2 -d " ")
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
{"phplib_dir" : "$PHPLIB_DIR",
|
{"phplib_dir" : "$PHPLIB_DIR",
|
||||||
|
"stage" : "$STAGE",
|
||||||
"iiab_branch" : "$BRANCH",
|
"iiab_branch" : "$BRANCH",
|
||||||
"iiab_commit" : "$COMMIT",
|
"iiab_commit" : "$COMMIT",
|
||||||
"xo_model" : "$XO_VERSION",
|
"xo_model" : "$XO_VERSION",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue