From d72ab3cc6f52ceaf7c9a59d48a8d35793ec142e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Mon, 18 Dec 2023 10:42:59 -0500 Subject: [PATCH] Fix mkproject --- site/profile/templates/accounts/mkproject.sh.epp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/profile/templates/accounts/mkproject.sh.epp b/site/profile/templates/accounts/mkproject.sh.epp index baa983891..9e2bfa21d 100644 --- a/site/profile/templates/accounts/mkproject.sh.epp +++ b/site/profile/templates/accounts/mkproject.sh.epp @@ -41,7 +41,7 @@ while read CONN OP GROUP; do # We support three operations : ADD, MOD or DEL if [[ "$OP" == "ADD" ]]; then - mkproject $GROUP <%= $with_folder %> + mkproject $GROUP <%= $manage_folder %> elif [[ "$OP" == "MOD" ]]; then # One or more groups have been modified # We grep the log for all operations related to request $CONN that contain a uid @@ -49,10 +49,10 @@ while read CONN OP GROUP; do # We grep all unique groups that have been modified MOD_GROUPS=$(grep -oP "conn=${CONN} op=[0-9]* MOD dn=\"cn=\K${PROJECT_REGEX}" /var/log/dirsrv/slapd-*/access | uniq) for GROUP in $MOD_GROUPS; do - modproject $GROUP <%= $with_folder %> $USERNAMES + modproject $GROUP <%= $manage_folder %> $USERNAMES done elif [[ "$OP" == "DEL" ]]; then - delproject $GROUP <%= $with_folder %> + delproject $GROUP <%= $manage_folder %> fi PREV_CONN="$CONN" done