Add script to check for buyvm slice availability

This commit is contained in:
2026-03-09 19:31:54 +01:00
parent 08b62de62f
commit 5340040f49

11
check_buyvm_slice_available.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
URL="https://my.frantech.ca/cart.php?gid=39"
N=$(curl -s "$URL" \
| pup '#product1 > div:nth-child(4) > div:nth-child(2)' \
| grep -o '[0-9]\+')
if [ "$N" -gt 0 ]; then
curl -n -d "KVM slices available: $N" https://ntfy.franpenedo.com/general
fi