|
|
@ -4,8 +4,11 @@ set -e |
|
|
|
|
|
|
|
. /usr/share/debconf/confmodule |
|
|
|
|
|
|
|
# Set up dbconfig-common |
|
|
|
if test -f /usr/share/dbconfig-common/dpkg/postinst; then |
|
|
|
if [ "$1" = "configure" ]; then |
|
|
|
# Set permissions on configuration file |
|
|
|
dpkg-statoverride --list "/etc/arsse/config.php" >/dev/null || dpkg-statoverride --update --add root www-data 640 "/etc/arsse/config.php" |
|
|
|
# Set up dbconfig-common |
|
|
|
if test -f /usr/share/dbconfig-common/dpkg/postinst; then |
|
|
|
. /usr/share/dbconfig-common/dpkg/postinst |
|
|
|
dbc_generate_include_owner="root:www-data" |
|
|
|
dbc_generate_include_perms="0640" |
|
|
@ -15,6 +18,7 @@ if test -f /usr/share/dbconfig-common/dpkg/postinst; then |
|
|
|
dbc_dbfile_owner="root:www-data" |
|
|
|
dbc_dbfile_perms="0660" |
|
|
|
dbc_go arsse "$@" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
# dh_installdeb will replace this with shell code automatically |
|
|
|