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"
if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then
mkdir -p /etc/ansible/facts.d
mkdir -p /etc/ansible/facts.d
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
echo "Found old XSCE install - re-installing from scratch"
rm /etc/iiab/iiab.env
# check ansible version here and force ansible upgrade if needed
else
source /etc/iiab/iiab.env
if [ ! $STAGE == 9 ]
then
echo "Restarting from STAGE $STAGE"
if [ -f /etc/iiab/iiab.env ]; then
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
if [ "$OLD" != 0 ]; then
echo "Found old XSCE install - re-installing from scratch"
rm /etc/iiab/iiab.env
# check ansible version here and force ansible upgrade if needed
else
source /etc/iiab/iiab.env
if [ ! $STAGE == 9 ]; then
echo "Restarting from 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 or rm iiab.env"
sleep 5
#exit 0
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
mkdir -p /etc/iiab
mkdir -p /etc/iiab
fi
if [ ! -f $PLAYBOOK ]
then
echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit 1
if [ ! -f $PLAYBOOK ]; then
echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit 1
fi
# if vars/local_vars.yml is missing, put a default one in place - First Run