Commit 15cfa70e authored by Philippe Gauron's avatar Philippe Gauron
Browse files

ajout de tests de dépendance

- si SERVERNAME=TANGO_HOST, => TANGO_DB
- détails ajoutés à la sortie TANGO_DB=>DATABASE & TANGO
parent 76ecbdf0
......@@ -40,6 +40,14 @@ fi
### Checking and correcting of initial configuration
## ${SERVERNAME} == ${TANGOSERVER} -> TANGO-DB=1
if [ "${DEPENDENCIES}" -eq 1 ] \
&& [ "${SERVERNAME}" == "${TANGOSERVER}" ] \
&& [ "${TANGO_DB}" -eq 0 ]
then
warning "${SERVERNAME} == ${TANGOSERVER}, TANGO_DB will be be considered set."
TANGO_DB=1
fi
## ARCHIVING=1 -> DATABASE=1
if [ "${DEPENDENCIES}" -eq 1 ] \
......@@ -61,12 +69,19 @@ fi
## TANGO_DB=1 -> TANGO=1 & DATABASE=1
if [ "${DEPENDENCIES}" == 1 ] \
&& [ "${TANGO_DB}" -eq 1 ]
if [ "${DEPENDENCIES}" -eq 1 ] \
&& [ "${TANGO_DB}" -eq 1 ]
then
warning "installation of TANGO_DB asked, TANGO will be considered set."
TANGO=1
DATABASE=1
if [ "${TANGO}" -eq 0 ]
then
warning "installation of TANGO_DB asked, TANGO will be considered set."
TANGO=1
fi
if [ "${DATABASE}" -eq 0 ]
then
warning "installation of TANGO_DB asked, DATABASE will be considered set."
DATABASE=1
fi
fi
......@@ -78,7 +93,6 @@ fi
## global variable definition
CORRECT_TANGO_HOST="srv-2.thomx.fr:20000"
ERROR=0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment