diff --git a/doc/SETUP.md b/doc/SETUP.md index 68fa24f..7a45061 100644 --- a/doc/SETUP.md +++ b/doc/SETUP.md @@ -129,6 +129,17 @@ web server on the same server. The complete list of configuration options is documented in [henrymail.full.prop](../henrymail.full.prop) +Upgrade +======= +You can download & run the upgrade script with the following command, similar to +the install script. + +```bash +wget https://raw.githubusercontent.com/MFAshby/henrymail/master/upgrade.sh \ + && chmod +x upgrade.sh \ + && sudo ./upgrade.sh +``` + TODO ==== * Administration page guide to adding users. diff --git a/upgrade.sh b/upgrade.sh new file mode 100644 index 0000000..65fb379 --- /dev/null +++ b/upgrade.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +systemctl stop henrymail +rm /usr/local/bin/henrymail +wget -O /usr/local/bin/henrymail https://github.com/MFAshby/henrymail/releases/download/0.0.1/henrymail +chmod +x /usr/local/bin/henrymail +setcap 'cap_net_bind_service=+ep' /usr/local/bin/henrymail +systemctl start henrymail \ No newline at end of file