From 5d79de6002aeee2bb9b81d8379777829fd66cc90 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 7 Feb 2008 13:03:30 +0100 Subject: [PATCH] Small bugfix for ldap db backup. --- src/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index 7afb24a..320ba37 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -35,7 +35,7 @@ find_id() { ids=$(getent $db | awk -F: "\$3 >= $first && \$3 <= $last {print \$3}") for i in $(seq $first $last) do - if ! echo $ids |grep -q $i; then + if ! echo $ids | grep -q $i; then echo $i return 0 fi @@ -366,7 +366,7 @@ backup_slapd_db () { umask $old_umask /etc/init.d/slapd start || true - if [ "$result" eq 0 ]; then + if [ "$result" -eq 0 ]; then log "$ldap_backup created" notice "Napravljen backup slapd baze u $ldap_backup." else -- 1.7.10.4