Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
MFAshby committed Jun 13, 2019
1 parent 36a47c1 commit 3167ac3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3167ac3

Please sign in to comment.