From 41338993585ab998245b623f110f32f9ed42f151 Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Mon, 24 Aug 2026 16:08:19 -0500 Subject: [PATCH] fix shell script --- homelab-services/gitea/flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homelab-services/gitea/flake.nix b/homelab-services/gitea/flake.nix index e1e81da..f0e6d0a 100644 --- a/homelab-services/gitea/flake.nix +++ b/homelab-services/gitea/flake.nix @@ -57,6 +57,8 @@ serviceConfig = { Type = "oneshot"; ExecStart = pkgs.writeShellScript "start-gitea" '' + set -euo pipefail + echo "Creating temp dir" kubernetes_config=$(mktemp -d) @@ -65,7 +67,7 @@ echo "${opts.database-hostname}" | $gomplate \ --input-dir=${k3sDir} \ --output-dir=$kubernetes_config \ - --datasource credentials=file://${opts.credentialsFile}?type=application/x-env + --datasource credentials=file://${opts.credentialsFile}?type=application/x-env \ --datasource dbhostname=stdin: echo "Applying k3s config"