1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Set up configuration file for Debian properly

This commit is contained in:
J. King 2021-07-07 16:03:34 -04:00
parent 5412eb348f
commit 7ad3611a84
2 changed files with 16 additions and 11 deletions

1
dist/debian/arsse.links vendored Normal file
View file

@ -0,0 +1 @@
etc/arsse/config.php usr/share/arsse/config.php

View file

@ -4,6 +4,9 @@ set -e
. /usr/share/debconf/confmodule
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
@ -16,6 +19,7 @@ if test -f /usr/share/dbconfig-common/dpkg/postinst; then
dbc_dbfile_perms="0660"
dbc_go arsse "$@"
fi
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.