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