Merge lp:~clint-fewbar/charms/oneiric/mediawiki/misc-fixes into lp:charms/oneiric/mediawiki

Proposed by Clint Byrum on 2012-01-20
Status: Merged
Approved by: Juan L. Negron on 2012-01-20
Approved revision: 56
Merged at revision: 56
Proposed branch: lp:~clint-fewbar/charms/oneiric/mediawiki/misc-fixes
Merge into: lp:charms/oneiric/mediawiki
Diff against target: 39 lines (+6/-2)
4 files modified
hooks/db-relation-changed (+1/-0)
hooks/install (+1/-1)
hooks/upgrade-charm (+3/-0)
revision (+1/-1)
To merge this branch: bzr merge lp:~clint-fewbar/charms/oneiric/mediawiki/misc-fixes
Reviewer Review Type Date Requested Status
Juan L. Negron (community) 2012-01-20 Approve on 2012-01-20
Review via email: mp+89369@code.launchpad.net

Description of the Change

Some fixes that I turned up while trying to deploy today.

To post a comment you must log in.
Juan L. Negron (negronjl) wrote :

LGTM

-Juan

Juan L. Negron (negronjl) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/db-relation-changed'
2--- hooks/db-relation-changed 2011-10-17 18:27:12 +0000
3+++ hooks/db-relation-changed 2012-01-20 01:37:23 +0000
4@@ -29,6 +29,7 @@
5 import json
6 import time
7 import MySQLdb
8+from subprocess import check_output
9
10 upload_path = "/var/www/wp-uploads"
11 config_file_path_template = "/etc/mediawiki/config-%s.php"
12
13=== modified file 'hooks/install'
14--- hooks/install 2011-07-23 07:51:53 +0000
15+++ hooks/install 2012-01-20 01:37:23 +0000
16@@ -2,7 +2,7 @@
17
18 home=`dirname $0`
19
20-DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y -q install mediawiki php5-cli postfix python-mysqldb
21+DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y -q install mediawiki php5-cli postfix python-mysqldb pwgen
22
23 # Run config changed hook
24 $home/config-changed
25
26=== added file 'hooks/upgrade-charm'
27--- hooks/upgrade-charm 1970-01-01 00:00:00 +0000
28+++ hooks/upgrade-charm 2012-01-20 01:37:23 +0000
29@@ -0,0 +1,3 @@
30+#!/bin/sh
31+home=`dirname $0`
32+exec $home/install
33
34=== modified file 'revision'
35--- revision 2011-10-17 22:59:21 +0000
36+++ revision 2012-01-20 01:37:23 +0000
37@@ -1,1 +1,1 @@
38-81
39+84

Subscribers

People subscribed via source and target branches

to all changes: