ci/cd fix perms issues with test core linux

This commit is contained in:
Théophile Diot 2023-09-18 17:45:40 +02:00
parent cd35d35c25
commit 294402dbf2
No known key found for this signature in database
GPG Key ID: 248FEA4BAE400D06
1 changed files with 8 additions and 3 deletions

View File

@ -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"