diff --git a/iiab-install b/iiab-install index 32b2c1c64..eeb489e14 100755 --- a/iiab-install +++ b/iiab-install @@ -82,10 +82,15 @@ if [ -f /etc/iiab/iiab.env ]; then exit 1 fi fi - if [[ `grep XSCE /etc/iiab/iiab.env` ]] || [ "$1" == "--reinstall" ]; then +# if XSCE is present resolveconf will not be + if [[ `grep XSCE /etc/iiab/iiab.env` ]]; then STAGE=0 rm /etc/iiab/iiab.env echo "Removed /etc/iiab/iiab.env effectively resetting STAGE (counter)." + elif [ "$1" == "--reinstall" ]; then + STAGE=0 + sed -i 's/^STAGE=.*/STAGE=0/' /etc/iiab/iiab.env + echo "Wrote STAGE=0 (counter) to /etc/iiab/iiab.env" elif [ "$STAGE" -ge 2 ] && [ "$1" == "--debug" ]; then STAGE=2 sed -i 's/^STAGE=.*/STAGE=2/' /etc/iiab/iiab.env