J. King
3 years ago
5 changed files with 82 additions and 1 deletions
@ -0,0 +1,18 @@ |
|||
#!/bin/sh |
|||
|
|||
set -e |
|||
|
|||
. /usr/share/debconf/confmodule |
|||
|
|||
# Settings for 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 |
|||
. /usr/share/dbconfig-common/dpkg/config |
|||
dbc_go arsse "$@" |
|||
fi |
|||
|
|||
# Ask all the questions |
|||
db_go || true |
@ -0,0 +1,27 @@ |
|||
#!/bin/sh |
|||
|
|||
set -e |
|||
|
|||
. /usr/share/debconf/confmodule |
|||
|
|||
# Settings for 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 |
|||
. /usr/share/dbconfig-common/dpkg/postinst |
|||
dbc_go arsse "$@" |
|||
fi |
|||
|
|||
# dh_installdeb will replace this with shell code automatically |
|||
# generated by other debhelper scripts. |
|||
|
|||
#DEBHELPER# |
|||
|
|||
exit 0 |
@ -0,0 +1,20 @@ |
|||
#!/bin/sh |
|||
|
|||
set -e |
|||
|
|||
if test -f /usr/share/debconf/confmodule; then |
|||
. /usr/share/debconf/confmodule |
|||
fi |
|||
|
|||
# Do dbconfig-common removal stuff |
|||
if test -f /usr/share/dbconfig-common/dpkg/postrm; then |
|||
. /usr/share/dbconfig-common/dpkg/postrm |
|||
dbc_go arsse "$@" |
|||
fi |
|||
|
|||
# dh_installdeb will replace this with shell code automatically |
|||
# generated by other debhelper scripts. |
|||
|
|||
#DEBHELPER# |
|||
|
|||
exit 0 |
@ -0,0 +1,16 @@ |
|||
#!/bin/sh |
|||
|
|||
set -e |
|||
|
|||
. /usr/share/debconf/confmodule |
|||
|
|||
# Do dbconfig-common prerm stuff |
|||
. /usr/share/dbconfig-common/dpkg/prerm |
|||
dbc_go arsse "$@" |
|||
|
|||
# dh_installdeb will replace this with shell code automatically |
|||
# generated by other debhelper scripts. |
|||
|
|||
#DEBHELPER# |
|||
|
|||
exit 0 |
Loading…
Reference in new issue