Fix file ownership issues/

This commit is contained in:
Mitchell Krog 2017-08-24 12:02:48 +02:00
parent d94821a183
commit da72196ab6
No known key found for this signature in database
GPG key ID: 2BB9A077C8DD6994
2 changed files with 7 additions and 0 deletions

View file

@ -222,6 +222,9 @@ printf '\n%s\n%s\n%s\n\n' "######################" "Now Run our Curl Tests" "###
# Copy all .conf files used in Test 1 to a folder for checking
# ************************************************************
sudo chown -r www-data:www-data /etc/nginx/bots.d/
sudo chown -r www-data:www-data /etc/nginx/conf.d/
cp /etc/nginx/bots.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test1/bots.d/
cp /etc/nginx/conf.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test1/conf.d/

View file

@ -255,6 +255,10 @@ printf '\n%s\n%s\n%s\n\n' "######################" "Now Run our Curl Tests" "###
# Copy all .conf files used in Test 2 to a folder for checking
# ************************************************************
sudo chown -r www-data:www-data /usr/local/nginx/bots.d/
sudo chown -r www-data:www-data /usr/local/nginx/conf.d/
cp /usr/local/nginx/bots.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test2/bots.d/
cp /usr/local/nginx/conf.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test2/conf.d/