chiark / gitweb /
dump silence too
[disorder] / README.upgrades
CommitLineData
460b9539 1* Upgrading DisOrder
2
3The general procedure is:
4
5f5fc693
RK
5 * stop the old daemon: /etc/init.d/disorder stop
6 * back up your database directory (example below)
460b9539 7 * build and install the new version as described in the README
8 * update the configuration files (see below)
9 * start the new daemon, e.g. with
10 /etc/init.d/disorder start
11
12The rest of this file describes things you must pay attention to when
13upgrading between particular versions. Minor versions are not
14explicitly mentioned; a version number like 1.1 implicitly includes
15all 1.1.x versions.
16
5f5fc693 17* 1.4/1.5 -> 2.0
92afc09e 18
5f5fc693 19** 'transform' and 'namepart' directives
92afc09e 20
5f5fc693
RK
21'transform' has moved from the web options to the main configuration file, so
22that they can be used by other interfaces. The syntax and semantics are
23unchanged.
24
25More importantly however both 'transform' and 'namepart' are now optional, with
26sensible defaults being built in. So if you were already using the default
27values you can just delete all instances of both.
28
29See disorder_config(5) for the default values. Hopefuly they will be suitable
30for many configurations. Please do send feedback.
31
32** 'enabled' and 'random_enabled' directives
33
34These have been removed. Instead the state persists from one run of the server
35to the next. If they appear in your configuration file they must be removed;
36the server will not start if they are present.
37
38** Database upgrade
92afc09e
RK
39
40It is strongly recommended that you back up your database before performing the
41upgrade. For example, as root, with the server STOPPED:
42 cd /var/disorder
43 mkdir BACKUP
44 cp -p * BACKUP
45
46To restore, again as root:
47 cd /var/disorder
48 rm *
49 cp -p BACKUP/* .
460b9539 50
5f5fc693
RK
51The first thing the server does when upgrading from 1.5 is run the
52disorder-dbupgrade program. This is necessary to modify any non-ASCII track
53names to meet the latest version's stricter normalization practices. The
54upgrade should succeed automatically; if not it should leave an error message
55in syslog.
460b9539 56
57* 1.3 -> 1.4
58
59** Raw Format Decoders
60
61You will probably want reconfigure your install to use the new facilities
62(although the old way works fine). See the example configuration file and
63README.raw for more details.
64
65Depending on how your system is configured you may need to link the disorder
66libao driver into the right directory:
67
68 ln -s /usr/local/lib/ao/plugins-2/libdisorder.so /usr/lib/ao/plugins-2/.
69
70* 1.2 -> 1.3
71
72** Server Environment
73
74It is important that $sbindir is on the server's path. The example init script
75guarantees this. You may need to modify the installed one. You will get
76"deadlock manager unexpectedly terminated" if you get this wrong.
77
78** namepart directives
79
80These have changed in three ways.
81
82Firstly they have changed to substitute in a more convenient way. Instead of
83matches for the regexp being substituted back into the original track name, the
84replacement string now completely replaces it. Given the usual uses of
85namepart, this is much more convenient. If you've stuck with the defaults no
86changes should be needed for this.
87
88Secondly they are matched against the track name with the collection root
89stripped off.
90
91Finally you will need to add an extra line to your config file as follows for
92the new track aliasing mechanisms to work properly:
93
94namepart ext "(\\.[a-zA-Z0-9]+)$" "$1" *
95
96* 1.1 -> 1.2
97
98** Web Interface Changes
99
100The web interface now includes static content as well as templates.
101The static content must be given a name visible to HTTP clients which
102maps to its location in the real filesystem.
103
104The README suggests using a rule in httpd.conf to make /static in the
105HTTP namespace point to /usr/local/share/disorder/static, which is
106where DisOrder installs its static content (by default).
107Alternatively you can set the url.static label to the base URL of the
108static content.
109
110** Configuration File Changes
111
112The trackname-part web interface directive has now gone, and the
113options.trackname file with it.
114
115It is replaced by a new namepart directive in the main configuration
116file. This has exactly the same syntax as trackname-part, only the
117name and location have changed.
118
119The reason for the change is to allow track name parsing to be
120centrally configured, rather than every interface to DisOrder having
121to implement it locally.
122
123If you do not install new namepart directives into the main
124configuration file then track titles will show up blank.
125
126If you do not remove the trackname-part directives from the web
127interface configuration then you will get error messages in the web
128server's error log.
129
130Local Variables:
131mode:outline
132fill-column:79
133End: