mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
runrole - remove clear_marker
This commit is contained in:
parent
6f59695540
commit
148fee9100
1 changed files with 11 additions and 15 deletions
26
runrole
26
runrole
|
@ -33,20 +33,6 @@ if ! grep -q "^""$1""_install: True" $LOCAL_VARS_FILE; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
clear_marker(){
|
||||
if [ ! $1 == "internetarchive" ]; then # special handling
|
||||
if [ $1 == "calibre-web" ]; then # role directory & installed marker differ
|
||||
sed -i -e '/^calibreweb/d' $IIAB_STATE_FILE
|
||||
elif [ $1 == "captive-portal" ]; then # role directory & installed marker differ
|
||||
sed -i -e '/^captive_portal/d' $IIAB_STATE_FILE
|
||||
#elif [ $1 == "bluetooth" ]; then # role directory & installed marker differ
|
||||
# sed -i -e '/^pan_bluetooth/d' $IIAB_STATE_FILE
|
||||
else
|
||||
sed -i -e "/^$1/d" $IIAB_STATE_FILE
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Needed for Stages 1-3 if not installed yet
|
||||
if [ ! -f $IIAB_STATE_FILE ]; then
|
||||
touch $IIAB_STATE_FILE
|
||||
|
@ -75,7 +61,17 @@ else
|
|||
fi
|
||||
|
||||
if [ "$REINSTALL" == "1" ]; then
|
||||
clear_marker
|
||||
if [ ! $1 == "internetarchive" ]; then # special handling
|
||||
if [ $1 == "calibre-web" ]; then # role directory & installed marker differ
|
||||
sed -i -e '/^calibreweb/d' $IIAB_STATE_FILE
|
||||
elif [ $1 == "captive-portal" ]; then # role directory & installed marker differ
|
||||
sed -i -e '/^captive_portal/d' $IIAB_STATE_FILE
|
||||
#elif [ $1 == "bluetooth" ]; then # role directory & installed marker differ
|
||||
# sed -i -e '/^pan_bluetooth/d' $IIAB_STATE_FILE
|
||||
else
|
||||
sed -i -e "/^$1/d" $IIAB_STATE_FILE
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $# -eq 2 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue