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 and spool directory
18 chown -R onak /var/lib/onak
19 chown -R onak /var/spool/onak
22 touch /var/log/onak.log
23 chown onak /var/log/onak.log
25 # Make the CGI tools setuid onak
26 for i in /usr/lib/cgi-bin/pks/*
28 if ! dpkg-statoverride --list $i >/dev/null
30 dpkg-statoverride --update --add onak root 4755 $i