On Sat, May 28, 2005 at 11:41:24PM +0200, [EMAIL PROTECTED] wrote: > I just installed another package of slapd. In fact it was the first > package installed after I followed your advice to use "echo FSET > slapd/dump_database_destdir seen false|debconf-communicate". So I was > asked whether I wanted an automatic dump, and I was asked the question > about the destination directory. I just pressed enter since the default > destination directory is fine for me. Installation aborted since > postinst could not backup slapd.conf to directory ''. > > Well, I am too tired now to figure out whether this is a result of my > manual setting of dump_database_destdir or it is because I accepted with > enter and actually there is no default. > > Anyway, the following simple patch should be correct in both cases, > postinst ran smoothly after applying.
Hrm, yes, that's what already in the subversion repository. Sorry, I should have uploaded it already... > --- slapd.postinst.orig 2005-05-28 23:07:58.094412590 +0200 > +++ slapd.postinst 2005-05-28 23:20:04.867191684 +0200 > @@ -83,6 +83,9 @@ > > local dir > db_get slapd/dump_database_destdir > + if [ -z "$RET" ]; then > + RET=/var/backups/slapd-VERSION > + fi > dir=`echo "$RET"|sed -e "s/VERSION/$OLD_VERSION/"` > mkdir -p -m 700 "$dir" > echo $dir Greetings Torsten
signature.asc
Description: Digital signature