From 99f5cc372813613fa4351e3c0bd07c69b99881d3 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 23 Jul 2021 09:55:05 +0200 Subject: [PATCH] Fix restore_lsexample compatibility with cron env --- lsexample/restore_lsexample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsexample/restore_lsexample b/lsexample/restore_lsexample index 1fd737de..60d9a035 100755 --- a/lsexample/restore_lsexample +++ b/lsexample/restore_lsexample @@ -110,5 +110,6 @@ EOF # Add database [ $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."