From: Matthijs Kooijman Date: Thu, 1 Jan 2009 12:38:07 +0000 (+0100) Subject: ldap: Add a warning when using restart with the ldapsearch method. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=02d453979b6d78bb1e6a27bfb731133611132371;p=matthijs%2Fupstream%2Fbackupninja.git ldap: Add a warning when using restart with the ldapsearch method. --- diff --git a/handlers/ldap.in b/handlers/ldap.in index c667ce5..83d6a6f 100644 --- a/handlers/ldap.in +++ b/handlers/ldap.in @@ -40,6 +40,8 @@ else [ -z "$vsnames" ] || warning 'vservers support disabled in backupninja.conf, vsnames configuration line will be ignored' fi +[ "$restart" = yes -a "$method" = ldapsearch ] && warning 'restart option should not be used with the ldapsearch method.' + status="ok" make_backup() {