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. 26
      dist/debian/arsse.postinst

1
dist/debian/arsse.links

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

26
dist/debian/arsse.postinst

@ -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…
Cancel
Save