Browse Source

Set up configuration file for Debian properly

rpm
J. King 3 years ago
parent
commit
7ad3611a84
  1. 1
      dist/debian/arsse.links
  2. 4
      dist/debian/arsse.postinst

1
dist/debian/arsse.links

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

4
dist/debian/arsse.postinst

@ -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.

Loading…
Cancel
Save