SuiteCRM Charm - No Auto-entry of database details
Joseph Liau
joseph at liau.ca
Fri Jul 24 01:18:33 UTC 2015
On 2015-07-23 12:58 PM, Tim Van Steenburgh wrote:
>
>
> On Thu, Jul 23, 2015 at 3:25 PM, Joseph Liau <joseph at liau.ca
> <mailto:joseph at liau.ca>> wrote:
>
> On 2015-07-23 12:11 PM, Tim Van Steenburgh wrote:
>> Hi Joseph,
>>
>> Here's one way to solve this:
>>
>> 1. Setup up the software manually one time.
>> 2. Once it's set up, dump the database to a file.
>> 3. Put that file in your charm, and use it to automatically load
>> the database when the db relation is joined.
> Hi Tim,
>
> 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.
> 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.
>
> i.e.
>
> admin-password
> (string) Password for Admin user.
> thisisaTEST!
>
>
>
> 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).
Great. Thank you. I will work with that. :)
>
>
> Thanks,
> Joseph
>>
>> For an example of this, check
>> out https://jujucharms.com/u/cabs-team/sugarcrm/trusty/16,
>> specifically the hooks/database-relation-changed file.
>>
>> On Thu, Jul 23, 2015 at 2:01 PM, Joseph Liau <joseph at liau.ca
>> <mailto:joseph at liau.ca>> wrote:
>>
>>
>> Hello,
>>
>> A while back I was working on a SuiteCRM charm (my first time
>> doing
>> anything like this):
>> https://github.com/userj/suitecrm-charm
>>
>> It installs all right, but when it comes time to go through
>> the setup
>> via the web-gui of SuiteCRM, then database details do not get
>> automatically populated/entered in the installation process.
>>
>> If I dig into the details of the database, I can find the
>> details and
>> manually input them. If I do that, then the SuiteCRM
>> installation works
>> as it should. This is obviously an unacceptable solution though.
>>
>> I'm hoping that someone can help me to either fix the charm
>> or liaise
>> with the SuiteCRM community resolve this issue. A lot of the
>> charm is
>> based on templates from SugarCRM and similar installations.
>>
>> Thanks,
>> Joe
>>
>>
>>
>>
>>
>>
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com <mailto:Juju at lists.ubuntu.com>
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150723/002ce88f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150723/002ce88f/attachment.pgp>
More information about the Juju
mailing list