DIN

Docs

Upgrade DIN

An upgrade is a new install over the old one: stop the field, run the new release's installer, and check the result. Your records, your token and your settings are kept.

Why stop the field first

From 1.0.30 the installer stops a field from the same install that is still running before it replaces the programs, then starts the new one (unless you pass --no-start). Installers before 1.0.30 did not: with those, the old field kept serving and din field start reported it was already up. Stopping it yourself first is harmless with any release, so the steps below keep it.

Steps

1. See what you run now:

din version

2. Stop the field. If you have din console running in a terminal, stop that too (Ctrl-C in its terminal).

din field stop

3. Download and verify the new release, unpack it, and run its installer with the same options you used the first time (for example the same --prefix or --port):

tar xzf din-<version>-linux-x86_64.tar.gz && cd din-<version>
sh install.sh

The installer starts the field again when it finishes. If you install with --no-start, start it yourself:

din field start

4. Check it:

din version
din status

What is kept

What is replaced

Windows

The same order applies: din field stop, then the new release's install.ps1, then din status. Windows installs of this release are unverified.