r103887 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103886‎ | r103887 | r103888 >
Date:09:15, 22 November 2011
Author:hashar
Status:deferred
Tags:
Comment:
dbconfig scripts are per stage!!!

This solve issue reported on r103835 where the database configuration
did not get properly installed.
Modified paths:
  • /trunk/debs/testswarm/debian/testswarm.postinst (modified) (history)
  • /trunk/debs/testswarm/debian/testswarm.prerm (modified) (history)

Diff [purge]

Index: trunk/debs/testswarm/debian/testswarm.postinst
@@ -8,11 +8,11 @@
99 #export DEBCONF_DEBUG=developer
1010
1111 . /usr/share/debconf/confmodule
12 -. /usr/share/dbconfig-common/dpkg/config.mysql
 12+. /usr/share/dbconfig-common/dpkg/postinst.mysql
1313 dbc_first_version="0.0.20111012-1"
14 -#dbc_generate_include="template:/usr/share/testswarm/site/config.ini"
15 -#dbc_generate_include_args="-otemplate_infile=/etc/testswarm/config.Debian.ini"
16 -dbc_generate_include="php:/etc/testswarm/debian.php"
 14+dbc_generate_include="template:/usr/share/testswarm/site/config.ini"
 15+dbc_generate_include_args="-otemplate_infile=/etc/testswarm/config.Debian.ini"
 16+#dbc_generate_include="php:/etc/testswarm/debian.php"
1717 dbc_generate_include_owner="root:www-data"
1818 dbc_generate_include_perms="0640"
1919 dbc_go testswarm $@
Index: trunk/debs/testswarm/debian/testswarm.prerm
@@ -4,7 +4,7 @@
55
66 . /usr/share/debconf/confmodule
77 if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
8 - . /usr/share/dbconfig-common/dpkg/config.mysql
 8+ . /usr/share/dbconfig-common/dpkg/prerm.mysql
99 dbc_go testswarm $@
1010 fi
1111

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r103835some cleanup on rm. dbconfig uses a PHP file...hashar21:17, 21 November 2011

Status & tagging log