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

Commit

Permalink
Fix alert on start issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Apr 22, 2021
1 parent 71330cd commit ec14f2b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 33 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
docker-compose.yml
!docker-compose.yml.sample
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ The architectures supported by this image are:

Webui is accessible at http://SERVERIP:PORT

Edit /config/monitrc to add services to monitor. Use `then exec "/config/monit2apprise"` to send alerts via configured apprise targets.
Edit `/config/monitrc` to add services to monitor. Use `then exec "/config/monit2apprise.sh"` to send alerts via configured apprise targets.

Edit /config/monit2apprise to customise the alert message.
Edit `/config/monit2apprise.sh` to customise the alert message.

More info at [monit](https://mmonit.com/monit/).

Expand Down
23 changes: 0 additions & 23 deletions docker-compose.yml.sample

This file was deleted.

Empty file modified root/defaults/monit2apprise
100644 → 100755
Empty file.
14 changes: 8 additions & 6 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ if [ ! -f "/config/monitrc" ]; then
cp -a /defaults/monitrc /config/monitrc
fi

if [ ! -f "/config/monit2apprise" ]; then
cp -a /defaults/monit2apprise /config/monit2apprise
if [ ! -f "/config/monit2apprise.sh" ]; then
cp -a /defaults/monit2apprise.sh /config/monit2apprise.sh
fi

# set permissions
chown -R abc:abc \
/config

chmod 700 \
/config/monitrc
/config/monit2apprise

chmod +x \
/config/monit2apprise.sh

chown -R abc:abc \
/config

0 comments on commit ec14f2b

Please sign in to comment.