Merge branch 'master' of ssh://git.kaz.bzh:2202/KAZ/KazV2

This commit is contained in:
Fanch 2025-04-19 14:23:14 +02:00
commit c55e984918
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# gestion des utilisateurs de kaz ( mail, cloud général, mattermost ) # gestion des utilisateurs de kaz ( mail, cloud général, mattermost )
# Ki : Did
# koi : gestion globale des users Kaz mais aussi les users d'autres domaines hébergés
KAZ_ROOT=$(cd "$(dirname $0)"/..; pwd) KAZ_ROOT=$(cd "$(dirname $0)"/..; pwd)
. $KAZ_ROOT/bin/.commonFunctions.sh . $KAZ_ROOT/bin/.commonFunctions.sh
@ -8,7 +10,7 @@ setKazVars
. $DOCKERS_ENV . $DOCKERS_ENV
. $KAZ_ROOT/secret/SetAllPass.sh . $KAZ_ROOT/secret/SetAllPass.sh
VERSION="5-12-2024" VERSION="18-05-2025"
PRG=$(basename $0) PRG=$(basename $0)
RACINE=$(echo $PRG | awk '{print $1}') RACINE=$(echo $PRG | awk '{print $1}')
IFS=' ' IFS=' '
@ -968,9 +970,9 @@ updateUser() {
MAILALIAS_CHANGE=0 MAILALIAS_CHANGE=0
for VALMAIL in ${CONTENU_ATTRIBUT} for VALMAIL in ${CONTENU_ATTRIBUT}
do do
read -p " - On garde ${VALMAIL} (o/n) ? [o] : " READVALMAIL read -p " - On garde ${VALMAIL} (o/n) [o] ? : " READVALMAIL
case ${READVALMAIL} in case ${READVALMAIL} in
* | "" | o | O ) "" | o | O )
NEW_CONTENU_ATTRIBUT="${NEW_CONTENU_ATTRIBUT} ${VALMAIL}" NEW_CONTENU_ATTRIBUT="${NEW_CONTENU_ATTRIBUT} ${VALMAIL}"
;; ;;
n | N ) n | N )
@ -1007,7 +1009,7 @@ updateUser() {
done done
;; ;;
"" | n | N ) "" | n | N )
#CHANGED+=([mailAlias]="${NEW_CONTENU_ATTRIBUT}") CHANGED+=([mailAlias]="${NEW_CONTENU_ATTRIBUT}")
;; ;;
* ) * )
printKazMsg "Erreur" printKazMsg "Erreur"

View File

@ -26,7 +26,7 @@ services:
- ../../secret/env-${roundcubeServName} - ../../secret/env-${roundcubeServName}
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.${roundcubeServName}.rule=Host(`${webmailHost}.${domain}`) || host(`roundcube.${domain}`)" - "traefik.http.routers.${roundcubeServName}.rule=host(`roundcube.${domain}`)"
- "traefik.docker.network=roundcubeNet" - "traefik.docker.network=roundcubeNet"
db: db: