~andreserl/maas/packaging.trusty.lp1300507

« back to all changes in this revision

Viewing changes to debian/maas-region-controller.postinst

  • Committer: Andres Rodriguez
  • Date: 2014-08-19 16:42:00 UTC
  • Revision ID: andreserl@ubuntu.com-20140819164200-kh5722rv0ddfqayc
debian/maas-region-controller.postinst: Do not change celery's rabbitmq
password on upgrade to not lock remote Cluster Controllers if upgrading
from 1.5+. (LP: #1300507)

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
        ########## Configure worker rabbitmq config ###########
220
220
        #########################################################
221
221
 
222
 
        if dpkg --compare-versions "$2" lt 1.5+bzr2252-0ubuntu1; then
223
 
                # Handle celery/rabbitmq publishing
224
 
                configure_maas_workers_rabbitmq_user "$ipaddr"
225
 
        fi
 
222
        # Handle celery/rabbitmq publishing
 
223
        configure_maas_workers_rabbitmq_user "$ipaddr"
226
224
 
227
225
        #########################################################
228
226
        ################  Configure Database  ###################
274
272
        # make sure rabbitmq is running
275
273
        restart_rabbitmq
276
274
        configure_maas_txlongpoll_rabbitmq_user
277
 
        # Handle celery/rabbitmq publishing
278
 
        configure_maas_workers_rabbitmq_user "$ipaddr"
 
275
        if dpkg --compare-versions "$2" lt 1.5+bzr2252-0ubuntu1; then
 
276
                # Handle celery/rabbitmq publishing
 
277
                configure_maas_workers_rabbitmq_user "$ipaddr"
 
278
        fi
279
279
        # handle database upgrade
280
280
        if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then
281
281
                # source dbconfig-common db config for maas-region-controller