add ntfysend

a small wrapper over curl to send ntfy messages
This commit is contained in:
joachimschmidt557 2023-03-25 23:37:20 +01:00
parent 150646b4c8
commit 18291fdf07
No known key found for this signature in database
GPG key ID: E0B575BE2884ACC5

11
ntfysend Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source /etc/ntfysendrc
message="$1"
title="${2:-$(hostname)}"
curl -u "$NTFY_USER:$NTFY_PASSWORD" \
-H "Title: $title" \
-d "$message" \
$NTFY_URL