scripts/ntfysend
joachimschmidt557 18291fdf07
add ntfysend
a small wrapper over curl to send ntfy messages
2023-03-25 23:37:20 +01:00

11 lines
185 B
Bash
Executable file

#!/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