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:
parent
5412eb348f
commit
7ad3611a84
2 changed files with 16 additions and 11 deletions
1
dist/debian/arsse.links
vendored
Normal file
1
dist/debian/arsse.links
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
etc/arsse/config.php usr/share/arsse/config.php
|
8
dist/debian/arsse.postinst
vendored
8
dist/debian/arsse.postinst
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue