add sendnotifications and update checker cron

Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
szaimen 2021-11-30 13:11:19 +01:00
parent c8e8c27925
commit a46a36ee41
4 changed files with 77 additions and 1 deletions

View file

@ -213,6 +213,7 @@ RUN set -ex; \
openssl \
gnupg \
dirmngr \
git \
; \
rm -rf /var/lib/apt/lists/*

View file

@ -3,7 +3,7 @@
SUBJECT="$1"
MESSAGE="$2"
if [ "$(php /var/www/html/occ config:app:get notificaations enabled)" = "no" ]; then
if [ "$(php /var/www/html/occ config:app:get notifications enabled)" = "no" ]; then
echo "Cannot send notification as notification app is not enabled."
exit 1
fi