[opencms-dev] OpenCms 11.0.2: different site than sites/default with Auto-setup

Schliemann, Kai K.Schliemann at comundus.com
Wed May 26 17:01:08 CEST 2021


Hi list,

we are using the Auto-setup described here https://documentation.opencms.org/opencms-documentation/server-installation/installing-opencms/the-setup-script/ to install OpenCms.
We would like to create a custom site folder (not /sites/default/) during setup.

Is it correct to change opencms-sites.xml and in folder setupdata the file cmssetup.txt?

Changes in file cmssetup.txt

...
# Create folder structure
createFolder "/" "sites/"
createFolder "/sites/" "default/"
createFolder "/system/" "modules/"
createFolder "/" "shared/"
...
chacc "/sites/default" "group" "Users" "+v+w+r+i"
...
# Import the modules that have been selected in the setup wizard to the default site
setSiteRoot "/sites/default/"

opencms-sites.xml:

<opencms>
                <sites>
                               <workplace-server>http://localhost:8080</workplace-server<http://localhost:8080%3c/workplace-server>>
                               <default-uri>/sites/default/</default-uri>
                               <shared-folder>/shared/</shared-folder>
                               <site server=http://localhost:8080 uri="/sites/default/">
                                               <parameters>
                                                               <param name="locale.main">en</param>
                                                               <param name="locale.secondary">de</param>
                                               </parameters>
                               </site>
                </sites>
</opencms>

Is this going to work or do I have to think of something else?

Thanks for your help.

Best regards
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210526/dd61a3e5/attachment.htm>


More information about the opencms-dev mailing list