File: postinst

package info (click to toggle)
usbauth-notifier 1.0.1%2Bgit20190124.b308d5b-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 208 kB
  • sloc: ansic: 382; sh: 42; makefile: 28
file content (24 lines) | stat: -rwxr-xr-x 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

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

NPRIV_PATH=/usr/bin/usbauth-npriv
NOTIFIER_DIR=/usr/lib/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