forked from shaba/openuds
29 lines
528 B
Bash
Executable File
29 lines
528 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
set -e
|
|
case "$1" in
|
|
configure)
|
|
/usr/bin/python3 -m compileall /usr/share/UDSActor > /dev/nul 2>&1
|
|
|
|
# Fix perms so only root can access "masterKey"
|
|
chmod 0700 /etc/udsactor
|
|
# chmod 0600 /etc/udsactor/udsactor.cfg
|
|
chown root:root /etc/udsactor
|
|
# chown root:root /etc/udsactor/udsactor.cfg
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|