mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
fix runrole
This commit is contained in:
parent
90ae299665
commit
e5b944fdca
1 changed files with 6 additions and 6 deletions
12
runrole
12
runrole
|
@ -22,6 +22,12 @@ if [[ $# -eq 0 ]] ; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "--reinstall" ]; then
|
||||
ARGS="$ARGS --extra-vars reinstall=True"
|
||||
REINSTALL=1
|
||||
shift 1
|
||||
fi
|
||||
|
||||
if ! grep -q "^""$1""_install: True" $LOCAL_VARS_FILE; then
|
||||
echo "ERROR: $LOCAL_VARS_FILE must contain '""$1""_install: True'"
|
||||
exit 1
|
||||
|
@ -41,12 +47,6 @@ clear_marker(){
|
|||
fi
|
||||
}
|
||||
|
||||
if [ "$1" == "--reinstall" ]; then
|
||||
ARGS="$ARGS --extra-vars reinstall=True"
|
||||
REINSTALL=1
|
||||
shift 1
|
||||
fi
|
||||
|
||||
# Needed for Stages 1-3 if not installed yet
|
||||
if [ ! -f $IIAB_STATE_FILE ]; then
|
||||
touch $IIAB_STATE_FILE
|
||||
|
|
Loading…
Add table
Reference in a new issue