#!/bin/sh

set -e

# source debconf library
. /usr/share/debconf/confmodule

NPRIV_PATH=/usr/libexec/usbauth-npriv
NOTIFIER_DIR=/usr/libexec/usbauth-notifier
NOTIFIER_PATH=$NOTIFIER_DIR/usbauth-notifier

chown root:usbauth $NPRIV_PATH
chmod 04750 $NPRIV_PATH

chown root:usbauth-notifier $NOTIFIER_DIR
chmod 00750 $NOTIFIER_DIR
chown root:usbauth $NOTIFIER_PATH
chmod 02755 $NOTIFIER_PATH

#DEBHELPER#

db_stop

exit 0
