Skip to content

Commit b51d616

Browse files
author
Lucas Costa Beyeler
authored
Merge pull request #176 from iqkotze/1.2-version
#169 fix awk print
2 parents d2d8692 + 3ace5b3 commit b51d616

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
OLD/
22
*.old
3+
.idea/

project/lib/bash/ParallelAction.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ function mailbox_backup()
7878
###############################################################################
7979
function ldap_restore()
8080
{
81-
ldapdelete -r -x -H "$LDAPSERVER" -D "$LDAPADMIN" -c -w "$LDAPPASS" \
82-
"$(grep ^dn: "$WORKDIR"/"$1"/"$2".ldiff | awk 'print $2')" > /dev/null 2>&1
83-
ERR=$( (ldapadd -x -H "$LDAPSERVER" -D "$LDAPADMIN" \
81+
ldapdelete -Z -r -x -H "$LDAPSERVER" -D "$LDAPADMIN" -c -w "$LDAPPASS" \
82+
"$(grep ^dn: "$WORKDIR"/"$1"/"$2".ldiff | awk '{print $2}')" > /dev/null 2>&1
83+
ERR=$( (ldapadd -Z -x -H "$LDAPSERVER" -D "$LDAPADMIN" \
8484
-c -w "$LDAPPASS" -f "$WORKDIR"/"$1"/"$2".ldiff) 2>&1)
8585
BASHERRCODE=$?
8686
if ! [[ $BASHERRCODE -eq 0 ]]; then

0 commit comments

Comments
 (0)