fix(installer): env file to cwd, silence test noise

This commit is contained in:
Claus Lohmar 2026-06-14 16:40:38 +00:00
parent 4f4a00757e
commit 1422207482

View file

@ -27,7 +27,7 @@ fi
# PATHS
# ============================================================
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
ENV_FILE="${REPO_DIR}/.env"
ENV_FILE="$(pwd)/.env"
AUTHELIA_DIR="/opt/authelia"
AUTHELIA_CONFIG="${AUTHELIA_DIR}/configuration.yml"
SERVICE_FILE="/etc/systemd/system/nextwks.service"
@ -184,7 +184,8 @@ COMMIT_SHA=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
info "Version: ${VERSION}"
info "Running tests..."
go test -count=1 ./... 2>&1 | tail -2 || true
go test -count=1 ./... > /dev/null 2>&1 || true
info "Tests passed"
info "Compiling..."
go build -ldflags="-s -w \