From 76474ba1516564410a1226765a39114efeb2305d Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Mon, 30 Nov 2020 13:43:36 +0100 Subject: [PATCH] travis nginx sudo --- test/travis/before_script.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/travis/before_script.sh b/test/travis/before_script.sh index 99a1e6dc..550a7bbc 100755 --- a/test/travis/before_script.sh +++ b/test/travis/before_script.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Travis pre-config script. - +set -eux # Clone and install CLIgen (needed for clixon configure and make) # Note travis builds and installs, then starts a clixon container where all tests are run from. @@ -11,7 +11,7 @@ git clone https://github.com/clicon/cligen.git wwwuser=www-data # Nginx conf file -cat< /etc/nginx/nginx.conf +cat< nginx.conf # user $wwwuser; error_log /var/log/nginx/error.log; @@ -53,7 +53,7 @@ http { } } EOF - +sudo cp nginx.conf /etc/nginx/nginx.conf sudo pkill nginx sudo nginx -c /etc/nginx/nginx.conf