Sometimes past me has the right idea
like making a Makefile to manage upgrades to my wiki instance—managing systemctl, moving the previous version to a separate location, downloading the new release, extracting it, restoring the site configuration and relaunching the service in a couple of steps