From 56c45e439e352db3af9a321ba773b97854790c32 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 18:57:43 +0200 Subject: Enable auto redeploy --- modules/auto-redeploy.nix | 3 ++- modules/base.nix | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix index c49399c..4cdabc5 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -20,7 +20,8 @@ ${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} ''; - #Restart = "never"; + Restart = "always"; + RestartSec = 10; User = "root"; }; }; diff --git a/modules/base.nix b/modules/base.nix index a87153f..68f7c02 100755 --- a/modules/base.nix +++ b/modules/base.nix @@ -5,6 +5,7 @@ [ ./monitoring.nix ./infra-logs.nix + ./auto-redeploy.nix ./users/Rory.nix ./users/chris.nix ./users/maddy.nix -- cgit 1.4.1