From ff151e1061ca5ff66e66aebfd60865a3a6826612 Mon Sep 17 00:00:00 2001 From: Sondre Malerud Date: Thu, 13 Mar 2025 11:39:39 +0100 Subject: [PATCH] Added sudo --- .github/workflows/update_primary_nginx.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index a8c6623..c1417a0 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -26,10 +26,10 @@ jobs: run: envsubst '$PROD_PORT_PREFIX,$DEV_PORT_PREFIX,$STAG_PORT_PREFIX,$GATEWAY_POSTFIX' < ./nginx_template.txt > nginx_securefit.conf - name: Copy temporary file to correct place - run: cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf + run: sudo cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf - name: Show nginx file - run: cat /etc/nginx/conf.d/nginx_securefit.conf + run: sudo cat /etc/nginx/conf.d/nginx_securefit.conf - name: Restart Nginx run: sudo systemctl restart nginx