Race condition in config-changed hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mediawiki (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
What I did: Added administrators to the charm via juju set admins="foo:bar"
What I expected: To have administrators populated in mediawiki, without error
what happened:
The charm assumes there is a MySQL database relationship defined (When LocalSettings.php is generated) in config-changed. This bug rears its head when you attempt to add administrators to MediaWiki without having a MySQL database relationship defined.
relevant lines:
for admin in $admins ; do
user=`echo $admin | cut -d: -f1`
pass=`echo $admin | cut -d: -f2`
output=`php createAndPromot
if [ ! "$output" = "account exists." ] ; then
echo $output
exit 1
fi
Proposed fix:
http://
Related branches
- charmers: Pending requested
-
Diff: 254 lines (+109/-117)5 files modifiedhooks/config-changed (+13/-9)
tests/00_setup.sh (+13/-0)
tests/100-deploy (+83/-0)
tests/100_deploy.test (+0/-62)
tests/get-unit-info (+0/-46)
Changed in mediawiki (Juju Charms Collection): | |
status: | New → Fix Released |