From 294402dbf25cb438fc8b5e1660adfe45e3f38a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Mon, 18 Sep 2023 17:45:40 +0200 Subject: [PATCH] ci/cd fix perms issues with test core linux --- .github/workflows/test-core-linux.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-core-linux.yml b/.github/workflows/test-core-linux.yml index cb5c721a..fdf2ac81 100644 --- a/.github/workflows/test-core-linux.yml +++ b/.github/workflows/test-core-linux.yml @@ -50,10 +50,15 @@ jobs: - name: Edit configuration files run: | echo "www.example.com 127.0.0.1" | sudo tee -a /etc/hosts + sudo rm -f /etc/bunkerweb/variables.env + sudo touch /etc/bunkerweb/variables.env + echo "SERVER_NAME=www.example.com" | sudo tee -a /etc/bunkerweb/variables.env + echo "HTTP_PORT=80" | sudo tee -a /etc/bunkerweb/variables.env + echo "HTTPS_PORT=443" | sudo tee -a /etc/bunkerweb/variables.env + echo "DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4" | sudo tee -a /etc/bunkerweb/variables.env + sudo chown nginx:nginx /etc/bunkerweb/variables.env sudo chmod 777 /etc/bunkerweb/variables.env - echo "SERVER_NAME=www.example.com" > /etc/bunkerweb/variables.env - { echo "HTTP_PORT=80"; echo "HTTPS_PORT=443"; echo "DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4"; } >> /etc/bunkerweb/variables.env - name: Run tests run: | cd ./tests/core/${{ inputs.TEST }} - ./test.sh "linux" + sudo ./test.sh "linux"