1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

add restarting feedback and marker for completed

This commit is contained in:
Jerry Vonau 2017-10-28 14:52:20 -05:00
parent daa9f4074e
commit 659c870198

View file

@ -13,6 +13,32 @@ if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then
fi
cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
STAGE=""
if [ -f /etc/iiab/iiab.env ]
then
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
if [ "$OLD" != 0 ]
then
rm /etc/iiab/iiab.env
else
source /etc/iiab/iiab.env
if [ ! $STAGE == 9 ]
then
echo "Restarting STAGE=$STAGE"
fi
if [ $STAGE == 9 ]
then
# place keeper
echo "offer 'Y' dialog box and --debug option to override"
echo "need to rewrite STAGE= before ansible is called"
# exit 0
fi
fi
else
mkdir -p /etc/iiab
fi
if [ ! -f $PLAYBOOK ]
then
echo "IIAB Playbook not found."