Main Content

Magnolia Community Forums: Get help with Magnolia: Scripting installer page


  • arjen
    arjen
    Full name: Arjen Schipmolder
    Posts: 15
    Last post: Nov 30, 2017 11:43:44 AM
    Registered on: Jul 12, 2017
    Scripting installer page
    #1 by arjen on Nov 30, 2017 10:33:48 AM

    Hi,
    I'm working on a Continuous Delivery setup where we'd ideally like to test with a clean project and then install a given set of test/demo data, but when we first start the clean project Magnolia stops in the installer page (.magnolia/installer) for all module initialising and waiting for human input.

    Does anybody know if there's a way to script this startup and ideally to analyse the results of the installer (for example any errors bootstrapping stuff etc)?

    Once we're past that point I guess I'll have the same problem importing data via script. If anybody has any pointers for that then that would be appreciated as well.

    Thanks
    Arjen

  • chrismenzel
    chrismenzel
    Full name: Christian Menzel
    Posts: 12
    Last post: Nov 30, 2017 11:11:19 AM
    Re: Scripting installer page
    #2 by chrismenzel on Nov 30, 2017 10:48:58 AM

    Hi Arjen, just set magnolia.update.auto to true in your magnolia.properties file.

    Regards
    Chris

    # Set it to true if bootstrapping/update should be performed automatically
    magnolia.update.auto=true

  • arjen
    arjen
    Full name: Arjen Schipmolder
    Posts: 15
    Last post: Nov 30, 2017 11:43:44 AM
    Registered on: Jul 12, 2017
    Re: Scripting installer page
    #3 by arjen on Nov 30, 2017 10:55:46 AM

    Ah, thanks Chris, that's great.
    I did not realise that option existed.

    Arjen

  • arjen
    arjen
    Full name: Arjen Schipmolder
    Posts: 15
    Last post: Nov 30, 2017 11:43:44 AM
    Registered on: Jul 12, 2017
    Re: Scripting installer page
    #4 by arjen on Nov 30, 2017 11:01:01 AM

    Oh, you wouldn't happen to know how to auto populate the license key as well, would you?

    Arjen

  • chrismenzel
    chrismenzel
    Full name: Christian Menzel
    Posts: 12
    Last post: Nov 30, 2017 11:11:19 AM
    Re: Scripting installer page
    #5 by chrismenzel on Nov 30, 2017 11:11:19 AM

    I would expect that you can just bootstrap the corresponding node (/modules/enterprise/license).

    Chris

  • arjen
    arjen
    Full name: Arjen Schipmolder
    Posts: 15
    Last post: Nov 30, 2017 11:43:44 AM
    Registered on: Jul 12, 2017
    Re: Scripting installer page
    #6 by arjen on Nov 30, 2017 11:43:44 AM

    Ah thanks again Chris.
    I had been looking at the /modules/license node which doesn't contain any useful info, whereas /modules/enterprise does.

    Thanks
    Arjen

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/