From: Valentin Vidic Date: Thu, 7 Feb 2008 12:03:30 +0000 (+0100) Subject: Small bugfix for ldap db backup. X-Git-Tag: debian/4.0.1~48 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=5d79de6002aeee2bb9b81d8379777829fd66cc90;p=carnet-upgrade.git Small bugfix for ldap db backup. --- 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