mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
flip logic for easier read - exit if STAGE=9
This commit is contained in:
parent
925ce00c7a
commit
da7f875cc0
1 changed files with 6 additions and 6 deletions
12
iiab-install
12
iiab-install
|
@ -4,7 +4,7 @@ PLAYBOOK="iiab-steps.yml"
|
|||
INVENTORY="ansible_hosts"
|
||||
CWD=`pwd`
|
||||
# Add cmdline options for passing to ansible
|
||||
# todo add proper shift to gobble up --debug --upgrade
|
||||
# todo add proper shift to gobble up --debug --reinstall
|
||||
ARGS=""
|
||||
|
||||
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
|
||||
|
@ -16,7 +16,9 @@ cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
|
|||
|
||||
STAGE=""
|
||||
|
||||
if [ -f /etc/iiab/iiab.env ]; then
|
||||
if [ ! -f /etc/iiab/iiab.env ]; then
|
||||
mkdir -p /etc/iiab
|
||||
else
|
||||
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
|
||||
if [ "$OLD" != 0 ] || [ "$1" = "--reinstall" ]; then
|
||||
echo "Found old XSCE install - re-installing from scratch"
|
||||
|
@ -34,13 +36,11 @@ if [ -f /etc/iiab/iiab.env ]; then
|
|||
# "offer 'Y' or stage number dialog box option to override"
|
||||
echo "'iiab-install' has already been completed"
|
||||
echo "use --debug to override "
|
||||
echo "In demo mode not preventing second run"
|
||||
#echo "In demo mode not preventing second run"
|
||||
#echo "Exiting."
|
||||
#exit 0
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
else
|
||||
mkdir -p /etc/iiab
|
||||
fi
|
||||
|
||||
if [ ! -f $PLAYBOOK ]; then
|
||||
|
|
Loading…
Reference in a new issue