<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 3:25 PM, Joseph Liau <span dir="ltr"><<a href="mailto:joseph@liau.ca" target="_blank">joseph@liau.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    On 2015-07-23 12:11 PM, Tim Van Steenburgh wrote:<br>
    <blockquote type="cite">
      <div dir="ltr">Hi Joseph,
        <div><br>
        </div>
        <div>Here's one way to solve this:</div>
        <div><br>
        </div>
        <div>1. Setup up the software manually one time.</div>
        <div>2. Once it's set up, dump the database to a file.</div>
        <div>3. Put that file in your charm, and use it to automatically
          load the database when the db relation is joined.</div>
      </div>
    </blockquote></span>
    Hi Tim,<br>
    <br>
    Neat idea. I had thought that I copied a lot of the SugarCRM hooks,
    but I missed that thought. I will give that a go.<br>
    But, then does that also mean the login information for SuiteCRM
    would not be chosen by the person installing? Should be ok as long
    as documented.<br>
    <br>
    i.e.
    <dl>
      <dt>admin-password </dt>
      <dd> <span>(string)</span> Password for
        Admin user. </dd>
      <dd>thisisaTEST!</dd>
    </dl>
    <br></div></blockquote><div><br></div><div>In the charm I linked to there is an admin-password config option which can be set by the user. The database is initially loaded with the default password (which is embedded in the db dump file). After the db is loaded, the config-changed hook is re-invoked, updating the admin-password in the database using the value from the config (see bottom of hooks/config-changed).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    Thanks,<br>
    Joseph<span class=""><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div>For an example of this, check out <a href="https://jujucharms.com/u/cabs-team/sugarcrm/trusty/16" target="_blank">https://jujucharms.com/u/cabs-team/sugarcrm/trusty/16</a>,
            specifically the hooks/database-relation-changed file.</div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jul 23, 2015 at 2:01 PM, Joseph
          Liau <span dir="ltr"><<a href="mailto:joseph@liau.ca" target="_blank">joseph@liau.ca</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
            Hello,<br>
            <br>
            A while back I was working on a SuiteCRM charm (my first
            time doing<br>
            anything like this):<br>
            <a href="https://github.com/userj/suitecrm-charm" rel="noreferrer" target="_blank">https://github.com/userj/suitecrm-charm</a><br>
            <br>
            It installs all right, but when it comes time to go through
            the setup<br>
            via the web-gui of SuiteCRM, then database details do not
            get<br>
            automatically populated/entered in the installation process.<br>
            <br>
            If I dig into the details of the database, I can find the
            details and<br>
            manually input them. If I do that, then the SuiteCRM
            installation works<br>
            as it should. This is obviously an unacceptable solution
            though.<br>
            <br>
            I'm hoping that someone can help me to either fix the charm
            or liaise<br>
            with the SuiteCRM community resolve this issue. A lot of the
            charm is<br>
            based on templates from SugarCRM and similar installations.<br>
            <br>
            Thanks,<br>
            Joe<br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            --<br>
            Juju mailing list<br>
            <a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
            Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </span></div>

</blockquote></div><br></div></div>