• Philip Roberts's avatar
    Add automated setup support on first run · 8bf8d5cb
    Philip Roberts authored
    If <setup>true</setup> does not exist in openfire.xml (i.e. setup is not complete, and a block does exist called <autosetup> with a <run>true</run> property inside it, that looks like this:
    
    ```
        <autosetup>
            <run>true</run>
    
            <locale>en</locale>
            <xmpp>
                <domain>localhost</domain>
                <fqdn>localhost</fqdn>
            </xmpp>
            <encryption>
                <algorithm>AES</algorithm>
                <key>some-key</key>
            </encryption>
            <database>
                <mode>standard</mode>
                <defaultProvider>
                    <driver>org.postgresql.Driver</driver>
                    <serverURL>jdbc:postgresql://localhost:5432/a-database</serverURL>
                    <username>a-database</username>
                    <password>a-password</password>
                </defaultProvider>
            </database>
            <admin>
                <email>admin@example.com</email>
                <password>admin</password>
            </admin>
        </autosetup>
    ```
    
    Then setup will be run on first launch, and the `<autosetup />` section will be deleted from openfire.xml
    8bf8d5cb
Name
Last commit
Last update
build Loading commit data...
dbutil Loading commit data...
documentation Loading commit data...
i18n Loading commit data...
src Loading commit data...
starter Loading commit data...
webadmin Loading commit data...
webadmintld Loading commit data...
xmppserver Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE.txt Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...