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