From f857b73d93cd26be425eb9482b3abed3b745ec77 Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Sat, 6 Feb 2021 19:16:50 +0000 Subject: [PATCH] Bugfix - LDAP restore was failing because the parameter position was wrong --- project/zmbackup | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/project/zmbackup b/project/zmbackup index 77c457a..69a40aa 100644 --- a/project/zmbackup +++ b/project/zmbackup @@ -123,7 +123,14 @@ case "$1" in checkpid case "$2" in "-dl"|"--distributionlist"|"-ldp"|"--ldap"|"-al"|"--alias"|"-sig"|"--signature") - restore_main_ldap "$3" "$4" "$5" + case "$3" in + "-a"|"--account"|"-d"|"--domain") + restore_main_ldap "$4" "$5" + ;; + * ) + restore_main_ldap "$3" "$4" + ;; + esac rm -rf "$PID" ;; "-m"|"--mail" )