]> jfr.im git - irc/anope/website.git/blame - upgrading.md
Add the news post for the 2.1.8 release.
[irc/anope/website.git] / upgrading.md
CommitLineData
51b3b7ba
SP
1---
2title: Upgrading from 2.0 to 2.1
3layout: simple
4---
5
6Upgrading from 2.0 to 2.1 can be done by:
7
8#### General
9
100. Update any scripts you have that execute `services` to execute `anope` instead.
11
63b1d4eb
SP
120. If you are using the `db_sql` or `db_sql_live` modules it is recommended that on 2.0 you load `db_flatfile` and export your database to a file and re-import on 2.1 to update the schema of your database.
13
51b3b7ba
SP
14#### services.conf
15
160. Rename `services.conf` to `anope.conf`.
17
01f50da6 180. Replace `uplink:ipv6` with `uplink:protocol` ([example](https://github.com/anope/anope/blob/2.1.0/data/anope.example.conf#L172-L176)).
51b3b7ba 19
b6b8104d
SP
200. If you are using the `charybdis` protocol module then migrate to [Solanum](https://github.com/solanum-ircd/solanum) and replace it with the `solanum` module.
21
51b3b7ba
SP
220. If you are using the `inspircd3` protocol module then replace it with the `inspircd` module.
23
240. If you are using the `inspircd12` or `inspircd20` protocol modules then upgrade your IRCd and replace it with the `inspircd` module.
25
260. If you are using the `unreal4` protocol module then replace it with the `unrealircd` module.
27
280. If you are using the `unreal` protocol module then upgrade your IRCd and replace it with the `unrealircd` module.
29
678694dc 300. Move the `enc_md5`, `enc_none`, `enc_sha1`, and `enc_sha256` modules to be secondary encryption modules and add `enc_argon2`, `enc_bcrypt`, or `enc_sha2` as a new primary encryption module ([example](https://github.com/anope/anope/blob/2.1.4/data/anope.example.conf#L1228-L1345)).
51b3b7ba 31
bd6293b1
SP
320. Replace the `nickserv/access` privilege in operator accounts with the `nickserv/cert` privilege.
33
678694dc
SP
340. Add the `global/queue` and `global/server` privileges to operator accounts with the `global/global` privilege.
35
360. Update `serverinfo:motd` to be relative to the config directory.
37
380. Update `serverinfo:pid` to be relative to the data directory.
39
400. If you are using email then add the `i` flag to the sendmail command ([example](https://github.com/anope/anope/blob/2.1.4/data/anope.example.conf#L953)).
41
4e0f7bfb
SP
420. Update `options:language` to no longer include `ca_ES.UTF-8`, `hu_HU.UTF-8`, and `ru_RU.UTF-8`
43
ebf10d4b
SP
44#### botserv.conf
45
460. Add a description to the `GREET` privilege ([example](https://github.com/anope/anope/blob/2.1.1/data/botserv.example.conf#L326)).
47
48#### chanserv.conf
49
4e0f7bfb
SP
500. Rename the `FANTASIA` privilege to `FANTASY` ([example](https://github.com/anope/anope/blob/2.1.7/data/chanserv.example.conf#L393-L408)).
51
520. Add a description to the `ACCESS_CHANGE`, `ACCESS_LIST`, `AKICK`, `ASSIGN`, `AUTOHALFOP`, `AUTOOP`, `AUTOOWNER`, `AUTOPROTECT`, `AUTOVOICE`, `BADWORDS`, `BAN`, `FANTASY`, `FOUNDER`, `GETKEY`, `HALFOP`, `HALFOPME`, `INFO`, `INVITE`, `KICK`, `MEMO`, `MODE`, `NOKICK`, `OP`, `OPME`, `OWNER`, `OWNERME`, `PROTECT`, `PROTECTME`, `SAY`, `SET`, `SIGNKICK`, `TOPIC`, `UNBAN`, `UNBANME`, `VOICE`, and `VOICEME` privileges ([example](https://github.com/anope/anope/blob/2.1.7/data/chanserv.example.conf#L206-L839)).
ebf10d4b
SP
53
540. Add the `UNBANME` privilege for `chanserv/unban` ([example](https://github.com/anope/anope/blob/2.1.1/data/chanserv.example.conf#L791-L806)).
55
bd6293b1
SP
560. Remove the `cs_secure` option from `module:defaults` for the `chanserv` module.
57
4e0f7bfb
SP
580. Rename `module:expire` for the `cs_suspend` module to `suspendexpire`.
59
678694dc
SP
60#### global.conf
61
620. Add the `gl_queue` and `gl_server` modules and their commands ([example](https://github.com/anope/anope/blob/2.1.4/data/global.example.conf#L117-L141)).
63
12490972 64#### chanstats.conf
51b3b7ba 65
12490972 660. Remove the `m_` prefix from the `chanstats` module.
51b3b7ba 67
12490972
SP
68#### nickserv.conf
69
700. Add the `nickserv/set/neverop` and `nickserv/saset/neverop` commands ([example](https://github.com/anope/anope/blob/2.1.0/data/nickserv.example.conf#L581-L582])).
51b3b7ba 71
bd6293b1
SP
720. Remove the `nickserv/set/secure` and `nickserv/saset/secure` commands.
73
740. Remove the `ns_access` module and `nickserv/access` command.
4e0f7bfb 75.
51b3b7ba
SP
760. Remove the `ns_getpass` module and `nickserv/getpass` command.
77
bd6293b1
SP
780. Remove the `ns_status` module and `nickserv/status` command.
79
800. Remove the `ns_secure` option from `module:defaults` for the `nickserv` module.
81
12490972
SP
820. Rename `nickserv:passlen` to `nickserv:maxpasslen`.
83
678694dc 840. Replace `options:strictpasswords` with `nickserv:minpasslen` ([example](https://github.com/anope/anope/blob/2.1.0/data/nickserv.example.conf#L212-L217)).
51b3b7ba 85
4e0f7bfb
SP
860. Load the `ns_set_language` module ([example](https://github.com/anope/anope/blob/2.1/data/nickserv.example.conf#L555-L564)).
87
ebf10d4b
SP
88#### modules.conf
89
12490972
SP
900. If enabled add `module:tlsv10`, `module:tlsv11`, and `module:tlsv12` to the `ssl_openssl` module ([example](https://github.com/anope/anope/blob/2.1.2/data/modules.example.conf#L632-L639)).
91
920. If enabled remove the `module:sslv3` from the `ssl_openssl` module (now always disabled).
93
940. If enabled remove the the `m_` prefix from the `dns`, `dnsbl`, `helpchan`, `httpd`, `ldap`, `ldap_oper`, `mysql`, `proxyscan`, `redis`, `regex_pcre2`, `regex_posix`, `regex_stdlib`, `regex_tre`, `rewrite`, `sasl`, `sql_log`, `sql_oper`, `sqlite`, `ssl_gnutls`, `ssl_openssl`, `xmlrpc`, and `xmlrpc_main` modules.
95
960. If enabled replace the `m_regex_pcre` module with the `regex_pcre2` module.
ebf10d4b 97
678694dc
SP
980. If enabled update `module:cert`, `module:dhparams`, and `module:key` for the `ssl_gnutls` module to be relative to the config directory.
99
1000. If enabled update `module:cert` and `module:key` for the `ssl_openssl` module to be relative to the config directory.
101
1020. If enable replace `module:template` replace for the `webcpanel` module with `module:template_dir` ([example](https://github.com/anope/anope/blob/2.1.4/data/modules.example.conf#L777-L781)).
103
51b3b7ba
SP
104#### operserv.conf
105
1060. Remove the `os_oline` module and `operserv/oline` command.
12490972
SP
107
108#### stats.standalone.conf
109
1100. Remove the `m_` prefix from the `mysql` module.