projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ee79cec
)
Small bugfix for ldap db backup.
author
Valentin Vidic
<vvidic@carnet.hr>
Thu, 7 Feb 2008 12:03:30 +0000
(13:03 +0100)
committer
Valentin Vidic
<vvidic@carnet.hr>
Thu, 7 Feb 2008 12:03:30 +0000
(13:03 +0100)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
7afb24a
..
320ba37
100644
(file)
--- 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
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
echo $i
return 0
fi
@@
-366,7
+366,7
@@
backup_slapd_db () {
umask $old_umask
/etc/init.d/slapd start || true
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
log "$ldap_backup created"
notice "Napravljen backup slapd baze u $ldap_backup."
else