summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-03 19:15:04 +0200
committerRory& <root@rory.gay>2024-06-05 15:52:38 +0200
commit442300ff7da50b1c720bb7d00acb47186c8bee79 (patch)
tree58f294279efe37c6f1a755830ea0cdf786b6007a
parentSwitch to timer (diff)
downloadSpacebar-Open-Infrastructure-442300ff7da50b1c720bb7d00acb47186c8bee79.tar.xz
Silence curl
-rw-r--r--modules/auto-redeploy.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix
index 52decc7..33b56dd 100644
--- a/modules/auto-redeploy.nix
+++ b/modules/auto-redeploy.nix
@@ -18,7 +18,7 @@
         #after = [ "network.target" ];
         serviceConfig = {
             ExecStart = ''
-              ${pkgs.curl}/bin/curl -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "System started redeploy."}' ${secrets.webhooks.discord.deploy}
+              ${pkgs.curl}/bin/curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "System started redeploy."}' ${secrets.webhooks.discord.deploy}
               cd /Spacebar-Open-Architecture
               #store current commit hash
               echo "Current commit: $(git rev-parse HEAD)"
@@ -35,11 +35,11 @@
               #pull new commits
               git pull
               #send commit log to discord
-              ${pkgs.curl}/bin/curl -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "```$(git log --pretty=format:"%h - %s" $currentCommit..HEAD)```"}' ${secrets.webhooks.discord.deploy}
+              ${pkgs.curl}/bin/curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "```$(git log --pretty=format:"%h - %s" $currentCommit..HEAD)```"}' ${secrets.webhooks.discord.deploy}
               #call ./update.sh and store output (including stderr) in a file
               ./update.sh 2>&1 | tee /tmp/update.log
               #send the output to discord as a file
-              ${pkgs.curl}/bin/curl -F "file=@/tmp/update.log" -F "filename=update.log" -F "content=System finished redeploy." -H "Content-Type: multipart/form-data" ${secrets.webhooks.discord.deploy}
+              ${pkgs.curl}/bin/curl -S -F "file=@/tmp/update.log" -F "filename=update.log" -F "content=System finished redeploy." -H "Content-Type: multipart/form-data" ${secrets.webhooks.discord.deploy}
               
               '';
             #Restart = "always";