From 02d453979b6d78bb1e6a27bfb731133611132371 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 1 Jan 2009 13:38:07 +0100 Subject: [PATCH] ldap: Add a warning when using restart with the ldapsearch method. --- handlers/ldap.in | 2 ++ 1 file changed, 2 insertions(+) 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() { -- 2.30.2