mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Add github action for integration test
* Add sudo to some commands for the github action. * Change paths to also work within a github action.
This commit is contained in:
parent
dad549c392
commit
13cd14738b
4 changed files with 40 additions and 20 deletions
|
|
@ -44,9 +44,9 @@ echo '
|
|||
listen [::]:8443 ssl http2 default_server; # ipv6
|
||||
' > TLS8443Configs.txt
|
||||
|
||||
cp $NGINX_CONFIG_PATH $NGINX_CONFIG_PATH.org
|
||||
sed -i "/^server {/r ${HOME}/${FOLDERNAME}/TLSConfigs.txt" $NGINX_CONFIG_PATH
|
||||
sed -i "/^server {/r ${HOME}/${FOLDERNAME}/TLS8443Configs.txt" $NGINX_CONFIG_PATH
|
||||
sed -i "/^\s*listen.*80/d" $NGINX_CONFIG_PATH # Remove configs for listinig on port 80
|
||||
systemctl reload nginx
|
||||
|
||||
sudo cp $NGINX_CONFIG_PATH $NGINX_CONFIG_PATH.org
|
||||
sudo sed -i "/^server {/r ${HOME}/${FOLDERNAME}/TLSConfigs.txt" $NGINX_CONFIG_PATH
|
||||
sudo sed -i "/^server {/r ${HOME}/${FOLDERNAME}/TLS8443Configs.txt" $NGINX_CONFIG_PATH
|
||||
sudo sed -i "/^\s*listen.*80/d" $NGINX_CONFIG_PATH # Remove configs for listinig on port 80
|
||||
sudo systemctl start nginx
|
||||
sudo systemctl reload nginx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue