Merge ~degorenko/ubuntu/+source/sahara:master into ~ubuntu-server-dev/ubuntu/+source/sahara:master

Proposed by Denis Egorenko
Status: Merged
Merged at revision: 14fbbe65a3245d452c41c7ac46ee5ff415383061
Proposed branch: ~degorenko/ubuntu/+source/sahara:master
Merge into: ~ubuntu-server-dev/ubuntu/+source/sahara:master
Diff against target: 32 lines (+9/-4)
2 files modified
debian/changelog (+9/-0)
debian/sahara-common.postinst.in (+0/-4)
Reviewer Review Type Date Requested Status
Corey Bryant Pending
Review via email: mp+269246@code.launchpad.net

Description of the change

Remove executing db-manage from post installation script

Currently Sahara doesn't support Sqlite DB and also Mysql or another
db can be unconfigured, so we need to remove executing of db-manage
from post installation script.

Closes-bug: #1452698

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 3332261..399c0e0 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+sahara (1:3.0.0~b2-0ubuntu2) UNRELEASED; urgency=medium
7+
8+ * Remove executing db-manage from post installation script
9+ Currently Sahara doesn't support Sqlite DB and also Mysql or another
10+ db can be unconfigured, so we need to remove executing of db-manage
11+ from post installation script.
12+
13+ -- Denis Egorenko <degorenko@mirantis.com> Wed, 26 Aug 2015 18:54:51 +0300
14+
15 sahara (1:3.0.0~b2-0ubuntu1) wily; urgency=medium
16
17 * New upstream milestone for OpenStack Liberty.
18diff --git a/debian/sahara-common.postinst.in b/debian/sahara-common.postinst.in
19index 66c0283..a6608ad 100644
20--- a/debian/sahara-common.postinst.in
21+++ b/debian/sahara-common.postinst.in
22@@ -11,10 +11,6 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
23 chown -R root:sahara /etc/sahara
24 chmod 0750 /etc/sahara
25
26- if ! grep -qE "^(sql_)?connection( )?=.*" ${SAHARA_CONF} || \
27- grep -qE "^(sql_)?connection.*sqlite.*" ${SAHARA_CONF}; then
28- su -s /bin/sh -c 'sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head' sahara
29- fi
30 fi
31
32 #DEBHELPER#

Subscribers

People subscribed via source and target branches