Update
This commit is contained in:
parent
b8517efaaf
commit
76274cd028
1 changed files with 1 additions and 1 deletions
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue