From 68b079bf2189f34fe22e1ee15665106f6e06331c Mon Sep 17 00:00:00 2001 From: adrianrd Date: Tue, 18 Mar 2025 16:30:43 +0100 Subject: [PATCH] Revert "try removing sudo" This reverts commit 2160a9eadce5a42de54ad90ac435f5bf602b4b4f. --- .github/workflows/update_primary_nginx.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 0c17741..672b5e4 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -24,7 +24,10 @@ jobs: envsubst '$PROD_PORT_PREFIX $GATEWAY_POSTFIX $DEV_PORT_PREFIX $STAG_PORT_PREFIX' < ./nginx_template.txt > temp_default.conf - name: Copy temporary file to correct place - run: cp temp_default.conf /etc/nginx/conf.d/default.conf + run: sudo cp temp_default.conf /etc/nginx/conf.d/default.conf - name: Show nginx file - run: cat /etc/nginx/conf.d/default.conf + run: sudo cat /etc/nginx/conf.d/default.conf + + - name: Reload Nginx + run: sudo systemctl reload nginx