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

Clean up maintainer scripts

This commit is contained in:
J. King 2021-07-07 15:24:45 -04:00
parent c936ecc1af
commit 5412eb348f
6 changed files with 25 additions and 27 deletions

View file

@ -4,15 +4,13 @@ set -e
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
# Settings for dbconfig-common # Set up dbconfig-common
dbc_authmethod_user=password
dbc_dbtypes="sqlite3, pgsql, mysql"
# Do dbconfig-common magic
if test -f /usr/share/dbconfig-common/dpkg/config; then if test -f /usr/share/dbconfig-common/dpkg/config; then
. /usr/share/dbconfig-common/dpkg/config . /usr/share/dbconfig-common/dpkg/config
dbc_dbtypes="sqlite3, pgsql, mysql"
dbc_authmethod_user="password"
dbc_go arsse "$@" dbc_go arsse "$@"
fi fi
# Ask all the questions # Prompt for dbconfig-common configuration
db_go || true db_go || true

View file

@ -4,18 +4,16 @@ set -e
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
# Settings for dbconfig-common # Set up dbconfig-common
dbc_generate_include_owner=root:www-data
dbc_generate_include_perms=0640
dbc_generate_include=php:/var/lib/arsse/dbconfig.inc
dbc_pgsql_createdb_encoding="UTF8' lc_collate='C"
dbc_mysql_createdb_encoding="UTF8"
dbc_dbfile_owner=root:www-data
dbc_dbfile_perms=0660
# Do dbconfig-common installation stuff
if test -f /usr/share/dbconfig-common/dpkg/postinst; then if test -f /usr/share/dbconfig-common/dpkg/postinst; then
. /usr/share/dbconfig-common/dpkg/postinst . /usr/share/dbconfig-common/dpkg/postinst
dbc_generate_include_owner="root:www-data"
dbc_generate_include_perms="0640"
dbc_generate_include="php:/var/lib/arsse/dbconfig.inc"
dbc_pgsql_createdb_encoding="UTF8' lc_collate='C"
dbc_mysql_createdb_encoding="UTF8"
dbc_dbfile_owner="root:www-data"
dbc_dbfile_perms="0660"
dbc_go arsse "$@" dbc_go arsse "$@"
fi fi

View file

@ -6,7 +6,7 @@ if test -f /usr/share/debconf/confmodule; then
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
fi fi
# Do dbconfig-common removal stuff # Set up dbconfig-common
if test -f /usr/share/dbconfig-common/dpkg/postrm; then if test -f /usr/share/dbconfig-common/dpkg/postrm; then
. /usr/share/dbconfig-common/dpkg/postrm . /usr/share/dbconfig-common/dpkg/postrm
dbc_go arsse "$@" dbc_go arsse "$@"

View file

@ -4,7 +4,7 @@ set -e
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
# Do dbconfig-common prerm stuff # Set up dbconfig-common
. /usr/share/dbconfig-common/dpkg/prerm . /usr/share/dbconfig-common/dpkg/prerm
dbc_go arsse "$@" dbc_go arsse "$@"

View file

@ -2,3 +2,5 @@
spelling-error-in-description Tiny Tiny (duplicate word) Tiny spelling-error-in-description Tiny Tiny (duplicate word) Tiny
# The manual for DrUUID (a dependency) includes a harmless "up" link # The manual for DrUUID (a dependency) includes a harmless "up" link
privacy-breach-generic usr/share/arsse/vendor/jkingweb/druuid/documentation/manual.html [<link rel="up" href="http://jkingweb.ca/code/">] (http://jkingweb.ca/code/) privacy-breach-generic usr/share/arsse/vendor/jkingweb/druuid/documentation/manual.html [<link rel="up" href="http://jkingweb.ca/code/">] (http://jkingweb.ca/code/)
# We only ask dbconfig-common questions, which don't seem to require templates
no-debconf-templates