diff --git a/iiab-configure b/iiab-configure index aa010bbfa..306be093f 100755 --- a/iiab-configure +++ b/iiab-configure @@ -43,7 +43,7 @@ else fi # Workaround for (web-published) images; will go away later -if grep -q sugar $IIAB_STATE_FILE; && ! grep -q mongodb $IIAB_STATE_FILE; then +if grep -q sugar $IIAB_STATE_FILE && ! grep -q mongodb $IIAB_STATE_FILE; then echo "mongodb_installed: True" >> $IIAB_STATE_FILE fi diff --git a/iiab-install b/iiab-install index 4715ea046..23a9bc629 100755 --- a/iiab-install +++ b/iiab-install @@ -154,7 +154,7 @@ if [ -f /etc/iiab/config_vars2.yml ]; then # Fix up prior values in state file # mongo role improved post image creation - if grep -q sugar $IIAB_STATE_FILE; && ! grep -q mongodb $IIAB_STATE_FILE; then + if grep -q sugar $IIAB_STATE_FILE && ! grep -q mongodb $IIAB_STATE_FILE; then echo "mongodb_installed: True" >> $IIAB_STATE_FILE fi