fix: add matrix hook url to env
This commit is contained in:
parent
f7b291d7c7
commit
590c480588
2 changed files with 3 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
2
etc/env
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue