Stop the wiki service
systemctl stop wiki.service
Copy/backup the config and download the latest version
cp /opt/wiki/config.yml ~/config.yml.bak && \
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 && \
rm wiki-js.tar.gz
Copy the config back into the new installation
cp ~/config.yml.bak /opt/wiki/config.yml
Start the wiki service
systemctl restart wiki.service