[knot-dns-users] Knot 2.1.0-rc1

Bastien Durel bastien at durel.org
Thu Jan 14 11:26:04 CET 2016


Le jeudi 14 janvier 2016 à 11:19 +0100, Bastien Durel a écrit :
> Le jeudi 14 janvier 2016 à 10:40 +0100, Ondřej Surý a écrit :
> > Hi Bastie,
> > 
> > the code to upgrade your KASB DB should be in the postinst script,
> > but could you try manually running:
> > 
> >     /usr/sbin/knotc conf-read | \
> >         sed -n 's/.*kasp-db = "\(.*\)"/\1/p'
> > 
> > and send the output back?
> > 
> 
> root at arrakeen:/tmp# /usr/sbin/knotc conf-read | sed -n 's/.*kasp-db =
> "\(.*\)"/\1/p'
> keys
> root at arrakeen:/tmp#
> 
> > Then try running full script with debug output, whether this gets
> > executed?
> > 
> > #!/bin/bash -x
> >     /usr/sbin/knotc conf-read | \
> >         sed -n 's/.*kasp-db = "\(.*\)"/\1/p' | \
> >         while read KASPDB; do
> >             su --shell /bin/bash --command "/usr/sbin/keymgr --dir
> > '$KASPDB' init" knot;
> >         done
> > 
> 
> root at arrakeen:/tmp# ./test.sh 
> + /usr/sbin/knotc conf-read
> + sed -n 's/.*kasp-db = "\(.*\)"/\1/p'
> + read KASPDB
> + su --shell /bin/bash --command '/usr/sbin/keymgr --dir '\''keys'\''
> init' knot
> + read KASPDB
> 
> Then I ran it from my storage dir :
> root at arrakeen:/var/lib/knot/external# /tmp/test.sh 
> + /usr/sbin/knotc conf-read
> + sed -n 's/.*kasp-db = "\(.*\)"/\1/p'
> + read KASPDB
> + su --shell /bin/bash --command '/usr/sbin/keymgr --dir '\''keys'\''
> init' knot
> + read KASPDB


I forgot to say that after running fro storage dir, zone loading is
working again ;)

Thanks !

-- 
Bastien




More information about the knot-dns-users mailing list