This commit is contained in:
iFargle 2023-12-25 20:18:14 +09:00
parent b8517efaaf
commit 76274cd028

View file

@ -130,6 +130,7 @@ payload="{\"message\": \"Backup completed\nDate: `date`\n`df -h | grep sda`\n`df
curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload" curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload"
''; '';
rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" '' rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" ''
#!${pkgs.stdenv.shell} #!${pkgs.stdenv.shell}
# Send the gotify notification: # Send the gotify notification:
@ -195,7 +196,6 @@ payload="{\"message\": \"Data Vol Backup completed\nDate: `date`\n`df -h | grep
curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload" curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload"
''; '';
'';
in in
{ {
environment.systemPackages = [ environment.systemPackages = [