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
|
26
dist/debian/arsse.postinst
vendored
26
dist/debian/arsse.postinst
vendored
|
@ -4,17 +4,21 @@ set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
# Set up dbconfig-common
|
if [ "$1" = "configure" ]; then
|
||||||
if test -f /usr/share/dbconfig-common/dpkg/postinst; then
|
# Set permissions on configuration file
|
||||||
. /usr/share/dbconfig-common/dpkg/postinst
|
dpkg-statoverride --list "/etc/arsse/config.php" >/dev/null || dpkg-statoverride --update --add root www-data 640 "/etc/arsse/config.php"
|
||||||
dbc_generate_include_owner="root:www-data"
|
# Set up dbconfig-common
|
||||||
dbc_generate_include_perms="0640"
|
if test -f /usr/share/dbconfig-common/dpkg/postinst; then
|
||||||
dbc_generate_include="php:/var/lib/arsse/dbconfig.inc"
|
. /usr/share/dbconfig-common/dpkg/postinst
|
||||||
dbc_pgsql_createdb_encoding="UTF8' lc_collate='C"
|
dbc_generate_include_owner="root:www-data"
|
||||||
dbc_mysql_createdb_encoding="UTF8"
|
dbc_generate_include_perms="0640"
|
||||||
dbc_dbfile_owner="root:www-data"
|
dbc_generate_include="php:/var/lib/arsse/dbconfig.inc"
|
||||||
dbc_dbfile_perms="0660"
|
dbc_pgsql_createdb_encoding="UTF8' lc_collate='C"
|
||||||
dbc_go arsse "$@"
|
dbc_mysql_createdb_encoding="UTF8"
|
||||||
|
dbc_dbfile_owner="root:www-data"
|
||||||
|
dbc_dbfile_perms="0660"
|
||||||
|
dbc_go arsse "$@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# dh_installdeb will replace this with shell code automatically
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
|
Loading…
Reference in a new issue