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:
parent
72b86db3b9
commit
dbc2422d5d
1 changed files with 11 additions and 0 deletions
11
runrole
11
runrole
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue