On 2015-07-23 12:58 PM, Tim Van Steenburgh wrote: > > > On Thu, Jul 23, 2015 at 3:25 PM, Joseph Liau <[email protected] > <mailto:[email protected]>> 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 <[email protected] >> <mailto:[email protected]>> 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 >> [email protected] <mailto:[email protected]> >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> > >
signature.asc
Description: OpenPGP digital signature
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
