Getting rid of systematic error message during install

This commit is contained in:
Alexandre Aubin 2017-07-07 15:28:08 +00:00 committed by root
parent a2e0c67d76
commit 55b9e75d67

View file

@ -46,7 +46,7 @@ do_pre_regen() {
sudo rm -f "$tmp_backup_dir_file" sudo rm -f "$tmp_backup_dir_file"
# retrieve current and new backends # retrieve current and new backends
curr_backend=$(grep '^database' /etc/ldap/slapd.conf | awk '{print $2}') curr_backend=$(grep '^database' /etc/ldap/slapd.conf 2>/dev/null | awk '{print $2}')
new_backend=$(grep '^database' slapd.conf | awk '{print $2}') new_backend=$(grep '^database' slapd.conf | awk '{print $2}')
# save current database before any conf changes # save current database before any conf changes