svg
This commit is contained in:
parent
82a7598c15
commit
d7f3c79c91
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
# == PHPLDAPADMIN =========================================================================================================================
|
# == PHPLDAPADMIN =========================================================================================================================
|
||||||
|
|
||||||
PHPLDAPADMIN_LDAP_HOSTS=ldap://${LDAP_SERVICE_NAME}:${LDAP_PORT}
|
PHPLDAPADMIN_LDAP_HOSTS=ldap://${LDAP_HOST}:${LDAP_PORT}
|
||||||
PHPLDAPADMIN_HTTPS="false"
|
PHPLDAPADMIN_HTTPS="false"
|
||||||
PHPLDAPADMIN_SERVER_PATH=
|
PHPLDAPADMIN_SERVER_PATH=
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ then
|
||||||
sed -i 's#${CAS_USER}#'${CAS_USER}'#g' ./.env.local
|
sed -i 's#${CAS_USER}#'${CAS_USER}'#g' ./.env.local
|
||||||
sed -i 's#${CAS_PASSWORD}#'${CAS_PASSWORD}'#g' ./.env.local
|
sed -i 's#${CAS_PASSWORD}#'${CAS_PASSWORD}'#g' ./.env.local
|
||||||
|
|
||||||
sed -i 's#${LDAP_SERVICE_NAME}#'${LDAP_SERVICE_NAME}'#g' ./.env.local
|
sed -i 's#${OPENLDAP_SERVICE_NAME}#'${OPENLDAP_SERVICE_NAME}'#g' ./.env.local
|
||||||
sed -i 's#${LDAP_ADMIN_USERNAME}#'${LDAP_ADMIN_USERNAME}'#g' ./.env.local
|
sed -i 's#${LDAP_ADMIN_USERNAME}#'${LDAP_ADMIN_USERNAME}'#g' ./.env.local
|
||||||
sed -i 's#${LDAP_BASEDN}#'${LDAP_BASEDN}'#g' ./.env.local
|
sed -i 's#${LDAP_BASEDN}#'${LDAP_BASEDN}'#g' ./.env.local
|
||||||
sed -i 's#${LDAP_PASSWORD}#'${LDAP_PASSWORD}'#g' ./.env.local
|
sed -i 's#${LDAP_PASSWORD}#'${LDAP_PASSWORD}'#g' ./.env.local
|
||||||
|
@ -63,7 +63,7 @@ destroyall(){
|
||||||
if [[ "$?" = 0 ]]
|
if [[ "$?" = 0 ]]
|
||||||
then
|
then
|
||||||
destroy $MARIADB_SERVICE_NAME 1
|
destroy $MARIADB_SERVICE_NAME 1
|
||||||
destroy $OPENLDAP_SERVICE_NAME 1
|
destroy $OPENOPENLDAP_SERVICE_NAME 1
|
||||||
destroy $KEYCLOAK_SERVICE_NAME 1
|
destroy $KEYCLOAK_SERVICE_NAME 1
|
||||||
destroy $NINEGATE_SERVICE_NAME 1
|
destroy $NINEGATE_SERVICE_NAME 1
|
||||||
destroy $NINEBOARD_SERVICE_NAME 1
|
destroy $NINEBOARD_SERVICE_NAME 1
|
||||||
|
@ -91,7 +91,7 @@ env() {
|
||||||
|
|
||||||
envall(){
|
envall(){
|
||||||
env $MARIADB_SERVICE_NAME
|
env $MARIADB_SERVICE_NAME
|
||||||
env $OPENLDAP_SERVICE_NAME
|
env $OPENOPENLDAP_SERVICE_NAME
|
||||||
env $KEYCLOAK_SERVICE_NAME
|
env $KEYCLOAK_SERVICE_NAME
|
||||||
env $NINEGATE_SERVICE_NAME
|
env $NINEGATE_SERVICE_NAME
|
||||||
env $NINEBOARD_SERVICE_NAME
|
env $NINEBOARD_SERVICE_NAME
|
||||||
|
@ -191,8 +191,8 @@ up(){
|
||||||
# CREATE BDD
|
# CREATE BDD
|
||||||
if [[ $CAS_ACTIVATE == 1 && $CAS_LOCAL == 1 ]]
|
if [[ $CAS_ACTIVATE == 1 && $CAS_LOCAL == 1 ]]
|
||||||
then
|
then
|
||||||
EchoVert ${CAS_SERVICE_NAME^^}
|
EchoVert ${KEYCLOAK_SERVICE_NAME^^}
|
||||||
$PODCOMPOSEBIN exec $MARIADB_SERVICE_NAME /envole/init.sh $CAS_SERVICE_NAME
|
$PODCOMPOSEBIN exec $MARIADB_SERVICE_NAME /envole/init.sh $KEYCLOAK_SERVICE_NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $NINEGATE_ACTIVATE == 1 && $NINEGATE_LOCAL == 1 ]]
|
if [[ $NINEGATE_ACTIVATE == 1 && $NINEGATE_LOCAL == 1 ]]
|
||||||
|
@ -223,21 +223,21 @@ up(){
|
||||||
# OPENLDAP
|
# OPENLDAP
|
||||||
if [[ $LDAP_ACTIVATE == 1 && $LDAP_LOCAL == 1 ]]
|
if [[ $LDAP_ACTIVATE == 1 && $LDAP_LOCAL == 1 ]]
|
||||||
then
|
then
|
||||||
Title ${LDAP_SERVICE_NAME^^}
|
Title ${OPENLDAP_SERVICE_NAME^^}
|
||||||
|
|
||||||
mkdir -p ./volume/openldap/data
|
mkdir -p ./volume/openldap/data
|
||||||
chmod a+wr ./volume/openldap/data
|
chmod a+wr ./volume/openldap/data
|
||||||
|
|
||||||
upservice $LDAP_SERVICE_NAME
|
upservice $OPENLDAP_SERVICE_NAME
|
||||||
$PODCOMPOSEBIN exec $LDAP_SERVICE_NAME /envole/init.sh
|
$PODCOMPOSEBIN exec $OPENLDAP_SERVICE_NAME /envole/init.sh
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# CAS
|
# CAS
|
||||||
if [[ $CAS_ACTIVATE == 1 && $CAS_LOCAL == 1 ]]
|
if [[ $CAS_ACTIVATE == 1 && $CAS_LOCAL == 1 ]]
|
||||||
then
|
then
|
||||||
Title ${CAS_SERVICE_NAME^^}
|
Title ${KEYCLOAK_SERVICE_NAME^^}
|
||||||
upservice $CAS_SERVICE_NAME
|
upservice $KEYCLOAK_SERVICE_NAME
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ destroyall(){
|
||||||
if [[ "$?" = 0 ]]
|
if [[ "$?" = 0 ]]
|
||||||
then
|
then
|
||||||
destroy $MARIADB_SERVICE_NAME 1
|
destroy $MARIADB_SERVICE_NAME 1
|
||||||
destroy $OPENLDAP_SERVICE_NAME 1
|
destroy $OPENOPENLDAP_SERVICE_NAME 1
|
||||||
destroy $KEYCLOAK_SERVICE_NAME 1
|
destroy $KEYCLOAK_SERVICE_NAME 1
|
||||||
destroy $NINEGATE_SERVICE_NAME 1
|
destroy $NINEGATE_SERVICE_NAME 1
|
||||||
destroy $NINEBOARD_SERVICE_NAME 1
|
destroy $NINEBOARD_SERVICE_NAME 1
|
||||||
|
@ -351,7 +351,7 @@ destroy(){
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "$LDAP_SERVICE_NAME" && $LDAP_ACTIVATE == 1 && $LDAP_LOCAL == 1 ]]
|
if [[ "$1" == "$OPENLDAP_SERVICE_NAME" && $LDAP_ACTIVATE == 1 && $LDAP_LOCAL == 1 ]]
|
||||||
then
|
then
|
||||||
if [[ -z $2 ]]; then Question_ouinon "Souhaitez-vous supprimer l'annuaire associé à $1 ?";fi
|
if [[ -z $2 ]]; then Question_ouinon "Souhaitez-vous supprimer l'annuaire associé à $1 ?";fi
|
||||||
if [[ "$?" = 0 || -z $2 ]]
|
if [[ "$?" = 0 || -z $2 ]]
|
||||||
|
@ -363,12 +363,12 @@ destroy(){
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "$CAS_SERVICE_NAME" && $CAS_ACTIVATE == 1 && $CAS_LOCAL == 1 ]]
|
if [[ "$1" == "$KEYCLOAK_SERVICE_NAME" && $CAS_ACTIVATE == 1 && $CAS_LOCAL == 1 ]]
|
||||||
then
|
then
|
||||||
if [[ -z $2 ]]; then Question_ouinon "Souhaitez-vous supprimer la BDD associé à $1 ?";fi
|
if [[ -z $2 ]]; then Question_ouinon "Souhaitez-vous supprimer la BDD associé à $1 ?";fi
|
||||||
if [[ "$?" = 0 || -z $2 ]]
|
if [[ "$?" = 0 || -z $2 ]]
|
||||||
then
|
then
|
||||||
$PODCOMPOSEBIN exec $MARIADB_SERVICE_NAME /envole/delete.sh $CAS_SERVICE_NAME
|
$PODCOMPOSEBIN exec $MARIADB_SERVICE_NAME /envole/delete.sh $KEYCLOAK_SERVICE_NAME
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue