~ubuntu-branches/ubuntu/raring/maas/raring-proposed

« back to all changes in this revision

Viewing changes to debian/maas.postinst

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-17 08:28:36 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20120717082836-ucb2vou8tqg353eq
Tags: 0.1+bzr777+dfsg-0ubuntu1
* New upstream release
* Only run 'maas' command as root. (LP: #974046)
  - debian/extras/maas: Check id.
  - debian/maas.install: Install in 'sbin'.
* debian/maas.postinst:
  - restart apache2 after everything gets processed.
  - Update version to handle upgrades.
* debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
  command line.
* debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        a2enmod expires
170
170
        a2enmod wsgi
171
171
 
172
 
        # Need to restart apache to pickup web configs
173
 
        restart_apache2
174
 
 
175
172
        #########################################################
176
173
        ########### Configure maas user for Cobbler #############
177
174
        #########################################################
260
257
                maas_sync_migrate_db
261
258
        fi
262
259
 
 
260
        # Need to restart apache to pickup web configs
 
261
        restart_apache2
 
262
 
263
263
        # Display installation note
264
264
        db_input high maas/installation-note || true
265
265
        db_go
296
296
        if dpkg --compare-versions "$2" lt 0.1+bzr459+dfsg-0ubuntu1; then
297
297
                configure_maas_tgt
298
298
        fi
299
 
        # If upgrading from any version lower than 0.1+bzr745+dfsg-0ubuntu1
 
299
        # If upgrading from any version lower than 0.1+bzr777+dfsg-0ubuntu1
300
300
        # we need to regenerate the passwords and update configs.
301
 
        if dpkg --compare-versions "$2" lt 0.1+bzr745+dfsg-0ubuntu1; then
 
301
        if dpkg --compare-versions "$2" lt 0.1+bzr777+dfsg-0ubuntu1; then
302
302
                # configure maas user for cobbler
303
303
                configure_maas_cobbler_user
304
304
                # configure pserv user for cobbler