From c9238b04b651bc14e4761cb2e7c868e021a77103 Mon Sep 17 00:00:00 2001 From: Jolan Date: Tue, 4 Mar 2025 11:15:01 +0100 Subject: [PATCH] fix: added sudo somewhere else in trying to solve env var issue nginx config --- .github/workflows/update_primary_nginx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index eec53a5..810ad41 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -26,7 +26,7 @@ jobs: # Copying nginx configuration file to the server - name: Deploy nginx configuration file run: | - sudo envsubst < ./nginx_secfit.conf > /etc/nginx/conf.d/nginx.conf + sudo envsubst < ./nginx_secfit.conf | sudo tee /etc/nginx/conf.d/nginx.conf > /dev/null # Test the nginx configuration - name: Test nginx configuration file