(→Upgrading OTS) |
(→0.8.6 - 0.8.7) |
||
| Line 2: | Line 2: | ||
== 0.8.6 - 0.8.7 == | == 0.8.6 - 0.8.7 == | ||
| - | Locations and names of configuration files have been changed | + | Locations and names of configuration files have been changed. All configuration files are now located in /etc/ots and the plugin configuration files are in /etc/ots/plugins. |
| - | All configuration files are now located in /etc/ots | + | |
| - | + | ||
If you wish to keep your old settings you have to replace the new files. | If you wish to keep your old settings you have to replace the new files. | ||
| Line 10: | Line 8: | ||
sudo mv /etc/ots_server.ini /etc/ots/server.conf | sudo mv /etc/ots_server.ini /etc/ots/server.conf | ||
sudo mv /etc/ots_plugin_qareports.conf /etc/ots/plugins/qareports.conf | sudo mv /etc/ots_plugin_qareports.conf /etc/ots/plugins/qareports.conf | ||
| - | And email plugin has it's own configuration file so you should move the [ots.email_plugin] section from the old /etc/ots_server.ini file to /etc/ots/plugins/email.conf | + | And email plugin has it's own configuration file so you should move the [ots.email_plugin] section from the old /etc/ots_server.ini file to /etc/ots/plugins/email.conf. |
On the worker side: | On the worker side: | ||
Contents |
Locations and names of configuration files have been changed. All configuration files are now located in /etc/ots and the plugin configuration files are in /etc/ots/plugins.
If you wish to keep your old settings you have to replace the new files. On the server side:
sudo mv /etc/ots_server.ini /etc/ots/server.conf sudo mv /etc/ots_plugin_qareports.conf /etc/ots/plugins/qareports.conf
And email plugin has it's own configuration file so you should move the [ots.email_plugin] section from the old /etc/ots_server.ini file to /etc/ots/plugins/email.conf.
On the worker side:
sudo mv /etc/ots.ini /etc/ots/worker.conf sudo mv /etc/conductor.conf /etc/ots/conductor.conf sudo mv /etc/ots_plugin_conductor_richcore.conf /etc/ots/plugins/conductor_richcore.conf
Backup all configuration files and database before upgrading.
If you have logger plugin installed update the templates by giving following commands after upgrade:
sudo cp -r /usr/share/ots/django/* /var/www/ sudo cp -r /usr/share/ots/plugin/* /var/www/
Upgrade also the latest meego-ai-flasher.
If you want to keep your old log database, add new (user_defined_id) column to the log_messages table. Run database command line interface for OTS database. By default OTS uses sqlite database at /opt/ots/ots.sqlite.
sudo sqlite3 /opt/ots/ots.sqlite
Add new column to the log_messages table by executing following command:
ALTER TABLE log_messages ADD COLUMN user_defined_id varchar(255) NOT NULL DEFAULT '';
If there's no need to keep the old database you can remove the database file (/opt/ots/ots.sqlite) and generate a new one using the instructions.
See migration document.