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

common style

This commit is contained in:
Jerry Vonau 2017-10-28 18:29:09 -05:00
parent 87c81df5e0
commit b8db298203

View file

@ -9,45 +9,40 @@ ARGS="$@"
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log" export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then
mkdir -p /etc/ansible/facts.d mkdir -p /etc/ansible/facts.d
fi fi
cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
STAGE="" STAGE=""
if [ -f /etc/iiab/iiab.env ] if [ -f /etc/iiab/iiab.env ]; then
then OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l` if [ "$OLD" != 0 ]; then
if [ "$OLD" != 0 ] echo "Found old XSCE install - re-installing from scratch"
then rm /etc/iiab/iiab.env
echo "Found old XSCE install - re-installing from scratch" # check ansible version here and force ansible upgrade if needed
rm /etc/iiab/iiab.env else
# check ansible version here and force ansible upgrade if needed source /etc/iiab/iiab.env
else if [ ! $STAGE == 9 ]; then
source /etc/iiab/iiab.env echo "Restarting from STAGE $STAGE"
if [ ! $STAGE == 9 ] fi
then if [ $STAGE == 9 ]; then
echo "Restarting from STAGE $STAGE" # place keeper
echo "offer 'Y' dialog box and --debug option to override"
echo "need to rewrite STAGE= before ansible is called or rm iiab.env"
sleep 5
#exit 0
fi
fi 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 or rm iiab.env"
sleep 5
# exit 0
fi
fi
else else
mkdir -p /etc/iiab mkdir -p /etc/iiab
fi fi
if [ ! -f $PLAYBOOK ] if [ ! -f $PLAYBOOK ]; then
then echo "IIAB Playbook not found."
echo "IIAB Playbook not found." echo "Please run this command from the top level of the git repo."
echo "Please run this command from the top level of the git repo." echo "Exiting."
echo "Exiting." exit 1
exit 1
fi fi
# if vars/local_vars.yml is missing, put a default one in place - First Run # if vars/local_vars.yml is missing, put a default one in place - First Run