diff --git a/iiab-install b/iiab-install index 734caf682..f63bb411b 100755 --- a/iiab-install +++ b/iiab-install @@ -138,6 +138,7 @@ if [ -f /etc/iiab/iiab.env ]; then echo -e "Use './iiab-install --debug' to run Stage 0, followed by Stages 3-9." echo -e "Use './runrole' to run a single Stage or Role." echo -e "Use './iiab-network' to run Network sections.\n\n" + echo -e "Use './iiab-configure' to turn installed service on|off via local_vars.yml.\n\n" exit 0 # allows rerunning http://download.iiab.io/6.7/install.txt fi fi @@ -145,6 +146,20 @@ if [ "$STAGE" -lt 2 ] && [ "$1" == "--debug" ]; then echo -e "\n'--debug' *ignored* as STAGE (counter) < 2." fi +if [ -f $APPS ]; then + if grep -q sugar $APPS; then + if ! grep -q mongodb $APPS; then + echo "mongodb_installed: True" >> $APPS + fi + + if [ "$STAGE" -eq 2 ]; then + echo -e "\n completing stage 3 from iiab image" + systemctl start iiab-setup-db + fi + PLAYBOOK="iiab-from-console.yml" + ARGS="" +fi + echo -e "\nTRY TO RERUN './iiab-install' IF IT FAILS DUE TO CONNECTIVITY ISSUES ETC!\n" echo -e "Running local playbooks....Stage 0 will now run....followed by Stages $(($STAGE + 1))-9"