From d348c5b7c107c13b3f61c0f481e5094a409dabd3 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 19:18:27 +0200 Subject: Move auto redeploy to script --- modules/auto-redeploy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix index 33b56dd..3e93d06 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -17,7 +17,7 @@ #wantedBy = [ "multi-user.target" ]; #after = [ "network.target" ]; serviceConfig = { - ExecStart = '' + ExecStart = pkgs.writeShellScript "auto-redeploy" '' ${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 -- cgit 1.4.1