mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
restore_lsexample: fix exit code on success
This commit is contained in:
parent
457995bc22
commit
7eee7e32b9
1 changed files with 4 additions and 1 deletions
|
@ -111,5 +111,8 @@ EOF
|
|||
# Add database
|
||||
[ $VERBOSE -eq 1 ] && echo "Import lsexample database in slapd" && VERBOSE_ARG="--verbose" || VERBOSE_ARG=""
|
||||
# Ldapvi need TERM variable is set
|
||||
TERM=xterm $LDAPVI -p config $VERBOSE_ARG --ldapmodify --ldapvi --add $SLAPD_DB_LDIF
|
||||
TERM=xterm $LDAPVI -p config --noninteractive $VERBOSE_ARG --ldapmodify --ldapvi --add $SLAPD_DB_LDIF
|
||||
[ $? -ne 0 ] && fatalerror "An error occurred importing lsexample database in slapd."
|
||||
|
||||
[ $VERBOSE -eq 1 ] && echo "LSexample successfully restored"
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue