From 6c37875d1fb8479ffb1ac3d1f31b0dab0541a942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=2ES?= Date: Wed, 6 Dec 2017 10:14:17 +0100 Subject: [PATCH] Add LDAP_BACKUP check --- evocheck.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/evocheck.sh b/evocheck.sh index 84f49ef..eaba098 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -589,6 +589,14 @@ if [ -e /etc/debian_version ]; then fi fi + if [ "$IS_LDAP_BACKUP" = 1 ]; then + if is_installed slapd; then + # You could change the default path in /etc/evocheck.cf + LDAP_BACKUP_PATH=${LDAP_BACKUP_PATH:-"/home/backup/ldap.bak"} + test -f "$LDAP_BACKUP_PATH" || echo 'IS_LDAP_BACKUP FAILED!' + fi + fi + if [ "$IS_MARIADBSYSTEMDUNIT" = 1 ]; then if is_debianversion stretch && is_installed mariadb-server; then (systemctl -q is-active mariadb.service && test -f /etc/systemd/system/mariadb.service.d/evolinux.conf) || echo 'IS_MARIADBSYSTEMDUNIT FAILED!'