1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Promote './runrole --reinstall <APP>' to new testers

This commit is contained in:
root 2020-11-05 08:29:05 -05:00
parent 72b86db3b9
commit dbc2422d5d

11
runrole
View file

@ -68,6 +68,17 @@ if $REINSTALL; then # Add '_' so '--reinstall calibre' doesn't zap calibreweb
echo -e "Try again without the '--reinstall' flag?\n"
exit 1
fi
else
if grep -q "^${ROLE_VAR}_" $IIAB_STATE_FILE; then
echo -e "\e[1mWARNING: $IIAB_STATE_FILE already has this/these line(s):\e[0m\n"
grep "^${ROLE_VAR}_" $IIAB_STATE_FILE; echo
echo -e "To reinstall it, run: ./runrole --reinstall $1\n"
echo -n "Or continue, e.g. to enable/disable it based on var '${ROLE_VAR}_enabled' ? [Y/n] "
read ans < /dev/tty
echo
[ "$ans" = "n" ] || [ "$ans" = "N" ] &&
exit 1
fi
fi
grep -q "^${ROLE_VAR}_install:\s\+[Tt]rue\b" $DEFAULT_VARS_FILE && INSTALL=true