quote curl urls

This commit is contained in:
Robert Perce 2026-01-07 16:46:56 -06:00
parent 0fbf1d0cb5
commit df50fa3830
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@
startAt = "daily";
postHook = ''
if [ $exitStatus -eq 0 ]; then
curl -sSL http://metrics01:3001/api/push/LmyyAawLzw?status=up&msg=OK&ping=
/run/current-system/sw/bin/curl -sSL 'http://192.168.0.6:3001/api/push/LmyyAawLzw?status=up&msg=OK&ping='
fi
'';
};

View file

@ -108,7 +108,7 @@ in
postHook = ''
echo "exit $exitStatus"
if [ $exitStatus -eq 0 ]; then
/run/current-system/sw/bin/curl -sSL http://192.168.0.6:3001/api/push/yTBTVZF8Bz?status=up&msg=OK&ping=
/run/current-system/sw/bin/curl -sSL 'http://192.168.0.6:3001/api/push/yTBTVZF8Bz?status=up&msg=OK&ping='
fi
'';
};