5 if [ "$1" = "configure" ]; then
8 adduser --system --home /var/lib/onak --no-create-home --disabled-login onak
11 # If there's no onak database, create it by adding my key.
13 if [ ! -e /var/lib/onak/num_keydb ]; then
14 zcat /usr/share/doc/onak/noodles.key | onak -b add
17 # Take ownership of the database directory
18 chown -R onak /var/lib/onak
21 touch /var/log/onak.log
22 chown onak /var/log/onak.log
24 # Make the CGI tools setuid onak
25 for i in /usr/lib/cgi-bin/pks/*
27 if ! dpkg-statoverride --list $i >/dev/null
29 dpkg-statoverride --update --add onak root 4755 $i