mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
Fix restore_lsexample compatibility with cron env
This commit is contained in:
parent
1ece486cd8
commit
99f5cc3728
1 changed files with 2 additions and 1 deletions
|
@ -110,5 +110,6 @@ EOF
|
||||||
|
|
||||||
# Add database
|
# Add database
|
||||||
[ $VERBOSE -eq 1 ] && echo "Import lsexample database in slapd" && VERBOSE_ARG="--verbose" || VERBOSE_ARG=""
|
[ $VERBOSE -eq 1 ] && echo "Import lsexample database in slapd" && VERBOSE_ARG="--verbose" || VERBOSE_ARG=""
|
||||||
$LDAPVI -p config $VERBOSE_ARG --ldapmodify --ldapvi --add $SLAPD_DB_LDIF
|
# Ldapvi need TERM variable is set
|
||||||
|
TERM=xterm $LDAPVI -p config $VERBOSE_ARG --ldapmodify --ldapvi --add $SLAPD_DB_LDIF
|
||||||
[ $? -ne 0 ] && fatalerror "An error occurred importing lsexample database in slapd."
|
[ $? -ne 0 ] && fatalerror "An error occurred importing lsexample database in slapd."
|
||||||
|
|
Loading…
Reference in a new issue