mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
Cleaner /opt/iiab/iiab/runrole
This commit is contained in:
parent
b106183c52
commit
ad740adadb
1 changed files with 10 additions and 13 deletions
23
runrole
23
runrole
|
@ -7,6 +7,7 @@ REINSTALL=0
|
||||||
CWD=`pwd`
|
CWD=`pwd`
|
||||||
IIAB_STATE_FILE=/etc/iiab/iiab_state.yml
|
IIAB_STATE_FILE=/etc/iiab/iiab_state.yml
|
||||||
LOCAL_VARS_FILE=/etc/iiab/local_vars.yml
|
LOCAL_VARS_FILE=/etc/iiab/local_vars.yml
|
||||||
|
|
||||||
if [ ! -f $PLAYBOOK ]; then
|
if [ ! -f $PLAYBOOK ]; then
|
||||||
echo "Exiting: IIAB Playbook not found."
|
echo "Exiting: IIAB Playbook not found."
|
||||||
echo "Please run this in /opt/iiab/iiab (top level of the git repo)."
|
echo "Please run this in /opt/iiab/iiab (top level of the git repo)."
|
||||||
|
@ -61,19 +62,15 @@ fi
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
if [ "$REINSTALL" == "1" ]; then
|
if [ "$REINSTALL" == "1" ]; then
|
||||||
#if [ ! $1 == "internetarchive" ]; then # special handling
|
if [ $1 == "calibre-web" ]; then # role directory & installed marker differ
|
||||||
if [ $1 == "calibre-web" ]; then # role directory & installed marker differ
|
sed -i -e '/^calibreweb/d' $IIAB_STATE_FILE
|
||||||
sed -i -e '/^calibreweb/d' $IIAB_STATE_FILE
|
elif [ $1 == "httpd" ]; then # role directory & installed marker differ
|
||||||
elif [ $1 == "httpd" ]; then # role directory & installed marker differ
|
sed -i -e '/^apache/d' $IIAB_STATE_FILE
|
||||||
sed -i -e '/^apache/d' $IIAB_STATE_FILE
|
elif [ $1 == "osm-vector-maps" ]; then # role directory & installed marker differ
|
||||||
elif [ $1 == "osm-vector-maps" ]; then # role directory & installed marker differ
|
sed -i -e '/^osm_vector_maps/d' $IIAB_STATE_FILE
|
||||||
sed -i -e '/^osm_vector_maps/d' $IIAB_STATE_FILE
|
else
|
||||||
#elif [ $1 == "bluetooth" ]; then # role directory & installed marker differ
|
sed -i -e "/^$1/d" $IIAB_STATE_FILE
|
||||||
# sed -i -e '/^pan_bluetooth/d' $IIAB_STATE_FILE
|
fi
|
||||||
else
|
|
||||||
sed -i -e "/^$1/d" $IIAB_STATE_FILE
|
|
||||||
fi
|
|
||||||
#fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -eq 2 ]; then
|
if [ $# -eq 2 ]; then
|
||||||
|
|
Loading…
Reference in a new issue