Stop the wiki service
systemctl stop wiki.service
Copy/backup the config, remove any existing Wiki.js downloads (from previous upgrades), download the latest version
cp /opt/wiki/config.yml ~/config.yml.bak && \
rm wiki-js.tar.gz && \
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz
Extract the downloaded archive. This will overwrite the existing installation. Verify the config got copied from the prior step!
tar xzf wiki-js.tar.gz -C /opt/wiki
Copy the config back into the new installation
cp ~/config.yml.bak /opt/wiki/config.yml
Start the wiki service
systemctl restart wiki.service