From 590c480588dced0fa30effe3faa78c111fb0ad63 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Tue, 17 Jan 2023 09:43:24 -0500 Subject: [PATCH] fix: add matrix hook url to env --- backup.sh | 2 +- etc/env | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 48d4d35..36a2362 100755 --- a/backup.sh +++ b/backup.sh @@ -82,7 +82,7 @@ cleanup () { } send_matrix () { - ${CURL} -skd "{\"body\": \"$1\"}" http://192.168.0.101:4785/\?key\=$MATRIX_HOOK_KEY\&room_id\=$MATRIX_HOOK_ROOMID > /dev/null + ${CURL} -skd "{\"body\": \"$1\"}" $MATRIX_HOOK_URL/\?key\=$MATRIX_HOOK_KEY\&room_id\=$MATRIX_HOOK_ROOMID > /dev/null } notify () { diff --git a/etc/env b/etc/env index b4df205..f956355 100644 --- a/etc/env +++ b/etc/env @@ -10,6 +10,8 @@ export RESTIC_REPOSITORY= export RESTIC_CACHE_DIR= ## matrix notifiction hook settings +# base url for matrix hook +export MATRIX_HOOK_URL= # api key export MATRIX_HOOK_KEY= # room_id, ensure it is in '', because the ! will mess things up