[
https://issues.apache.org/jira/browse/OFBIZ-3971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux closed OFBIZ-3971.
----------------------------------
Resolution: Fixed
Thanks Pierre,
Your (slightly modified) patch is in trunk at r1065144
I have noticed that most of the time I had to enter twice (or IIRW also hit
enter and then y or Y) at this stage
load-tenant-admin-user-login:
[echo] ------------------------------------
[echo] Installing the admin for the tenant
[echo] Delegator = default#tenant1
[echo] Tenant admin = 'tenant1-admin'
[echo] Password for tenant admin is 'ofbiz' must change on first login
[echo] ------------------------------------
[input] Continue Y or N (N, n, Y, y)
Not sure why (I did not try to fix)
I tested with an IP:port string, of course no pb (locally I use diff port # for
diff versions of Postgres)
In the target comments I have added (in bold):
<input addproperty="db-IP" message="Enter IP address of the database server
*(you may add a port number)*"/>
in get-tenant-data
<echo message="Please make sure that the driver of the platform is installed
and that the databases have been created *(in function of the entityengine.xml
datasource-names)*"/>
<echo message="Please make sure that the driver of the platform is installed
and that the databases have been created *(Check names just above)*"/>
And when not Derby
description="Creates tenant data and instance. *Don't forget db driver(s) and
already created DBs in function of the entityengine.xml datasource-names*"
Also
description="This build script creates a new tenant in your environment,
creates the delegator, and loads initial data *(needs multitenant=Y in
general.properties)*">
Please re-check on your side...
> enhancement to create new tenants easier
> ----------------------------------------
>
> Key: OFBIZ-3971
> URL: https://issues.apache.org/jira/browse/OFBIZ-3971
> Project: OFBiz
> Issue Type: Improvement
> Components: commonext/setup, framework
> Affects Versions: SVN trunk
> Environment: All
> Reporter: Pierre Smits
> Assignee: Jacques Le Roux
> Fix For: SVN trunk
>
> Attachments: OFBIZ-3971-multitenant-improvement-20110121.patch
>
>
> This modification enables backend admins to easier create new tenants.
> It first enters data about the tenant (tenantID and tenantName) in entity
> Tenant and TenantDataSource.
> Subsequently it creates the databases (derby only) for the new delegator. The
> backend-admin can state which datafiles must be loaded in the newly created
> databases (seed, seed-initial, ext, etc...)
> Finally it creates the tenant-admin and its password in the newly created
> database. The name of tenant-admin is based on the tenantId given (i.e.
> tenantId-admin). The password of the tenant-admin must be changed on first
> login.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.