Difference between revisions of "Tine20 App Migration"
From Univention Wiki
Line 10: | Line 10: | ||
The following steps are necessary to migrate the non-Docker Tine20 App to Docker: | The following steps are necessary to migrate the non-Docker Tine20 App to Docker: | ||
− | + | == Save settings and prepare Tine20 App removal == | |
+ | <pre> | ||
php -r '$config = require "/etc/tine20/config.inc.php"; | php -r '$config = require "/etc/tine20/config.inc.php"; | ||
echo $config["database"]["password"];' > /etc/postgres-tine20.secret | echo $config["database"]["password"];' > /etc/postgres-tine20.secret | ||
Line 16: | Line 17: | ||
</pre> | </pre> | ||
− | + | == Remove Tine20 App == | |
+ | <pre> | ||
univention-app remove tine20 | univention-app remove tine20 | ||
− | ucr unset appcenter/prudence/docker/tine20</pre> | + | ucr unset appcenter/prudence/docker/tine20 |
+ | </pre> | ||
− | + | == Install Tine20 Docker App == | |
+ | <pre> | ||
univention-app update | univention-app update | ||
univention-app register | univention-app register | ||
− | univention-app install tine20=2015.11.15-ucs1</pre> | + | univention-app install tine20=2015.11.15-ucs1 |
+ | </pre> | ||
− | + | == Verify mail settings in Tine20 setup == | |
− | Open the /tine20/setup.php URL on the Docker host (username: tine20setup, | + | Open the ''/tine20/setup.php'' URL on the Docker host (username: tine20setup, password: see file ''/etc/tine20setup.secret'' on Docker host) and verify Email (IMAP, SMTP, Sieve) settings. |
− | password: see file /etc/tine20setup.secret on Docker host) and verify | ||
− | Email (IMAP, SMTP, Sieve) settings. | ||
− | + | == Set Mail Home Server on UCS accounts == | |
− | If the UCS mailstack is used for email, verify that the attribute | + | If the UCS mailstack is used for email, verify that the attribute ''Mail Home Server'' is set on all UCS accounts, which are supposed to use the UCS mail server in Tine20. |
− | Mail Home Server is set on all UCS accounts, which are supposed | ||
− | to use the UCS mail server in Tine20. | ||
Further configurations or modifications of UCR settings have to be done in the container from now on. Use the following command to change into the new Tine20 App container: | Further configurations or modifications of UCR settings have to be done in the container from now on. Use the following command to change into the new Tine20 App container: |
Revision as of 13:04, 23 November 2016
Work in Progress
Starting with version 2015.11.15 the Tine20 App for UCS is available as Docker App. New installations automatically using this Docker App.
To update an existing non-Docker Tine20 App to the new Docker Tine20 App a manual migration has to be done. Basically, Tine20 on the server (Docker host) is removed and installed in a new Docker container. Directories with Tine20 data are mapped into the container and the container continues to use the database on the Docker host.
The following steps are necessary to migrate the non-Docker Tine20 App to Docker:
Contents
Save settings and prepare Tine20 App removal
php -r '$config = require "/etc/tine20/config.inc.php"; echo $config["database"]["password"];' > /etc/postgres-tine20.secret apt-mark manual univention-postgresql
Remove Tine20 App
univention-app remove tine20 ucr unset appcenter/prudence/docker/tine20
Install Tine20 Docker App
univention-app update univention-app register univention-app install tine20=2015.11.15-ucs1
Verify mail settings in Tine20 setup
Open the /tine20/setup.php URL on the Docker host (username: tine20setup, password: see file /etc/tine20setup.secret on Docker host) and verify Email (IMAP, SMTP, Sieve) settings.
Set Mail Home Server on UCS accounts
If the UCS mailstack is used for email, verify that the attribute Mail Home Server is set on all UCS accounts, which are supposed to use the UCS mail server in Tine20.
Further configurations or modifications of UCR settings have to be done in the container from now on. Use the following command to change into the new Tine20 App container:
univention-app shell tine20