5 if [ "$1" = "configure" ]; then
8 adduser --system --home /var/lib/onak --no-create-home --disabled-login onak
10 # Take ownership of the database directory
11 chown -R onak /var/lib/onak
14 touch /var/log/onak.log
15 chown onak /var/log/onak.log
17 # Make the CGI tools setuid onak
18 for i in /usr/lib/cgi-bin/pks/*
20 if ! dpkg-statoverride --list $i >/dev/null
22 dpkg-statoverride --update --add onak root 4755 $i