Tip of the day: The Security article gives hands-on tips on how to deal with drone attacks, flooding, spammers, (D)DoS and more.

Upgrading

From UnrealIRCd documentation wiki
Jump to navigation Jump to search
This page contains changes which are not marked for translation.
Other languages:

This page explains how to upgrade your UnrealIRCd to a newer version if you stay on the same series, like 6.0.x to 6.1.y.

IMPORTANT: If you are upgrading not within the same series, like from UnrealIRCd 5 to 6, then see Upgrading from 5.x.

Automated upgrade (*NIX)

Simply run: ./unrealircd upgrade if you want to:

  • upgrade from 6.1.x to a later 6.1.y

After the command has finished, read the output on the terminal. It will tell you if the upgrade went OK and your configuration file needs updating or not. If all is good then you can restart the IRCd to complete the upgrade.

Exit status

For advanced users interested in the exit status of the ./unrealircd upgrade command (eg for mass-scripting purposes):

  • Exit code 0: Upgrade and configtest successful. You can restart the IRCd now.
  • Exit code 1: An error occured
  • Exit code 5: Upgrade successful but configuration file needs updating. Do not restart IRCd but make changes first.
  • Exit code 10: No newer version available

Manual upgrade (*NIX)

You can upgrade form any 6.X.X version to any 6.Y.Y version.

NOTE: If you are upgrading from old unsupport major version, see Upgrading from 4.x or Upgrading from 3.2.x.

  1. Backup your existing /home/xxx/unrealircd directory:
    cp -Rav /home/xxx/unrealircd /home/xxx/unrealircd.bak
  2. Download and install latest version of UnrealIRCd. See Installing from source and stop before Creating a configuration file.
  3. Double check: make sure you ran make install as this will install all new files in /home/xxx/unrealircd.
  4. Configuration test to make sure the IRCd will boot later (this will not start the ircd, it will only TEST the configuration!):
    cd /home/xxx/unrealircd
    ./unrealircd configtest
    This should print out:
    Configuration test passed OK
    If you see warnings/errors, fix them and run ./unrealircd configtest again until all issues are fixed.
  5. Now you can restart the IRCd so it uses the new version:
    cd /home/xxx/unrealircd
    ./unrealircd restart

Windows

  1. Surf to https://www.unrealircd.org/ and click Downloads. Pick your branch, download the installer .exe file.
  2. Stop UnrealIRCd
  3. Just in case, make a backup of your UnrealIRCd directory (C:\Program Files\UnrealIRCd 6).
  4. Run the installer
  5. Start UnrealIRCd