Fix File Ownership Issues (5)

This commit is contained in:
Mitchell Krog 2017-08-24 12:16:57 +02:00
parent 8677a95fde
commit 188bb3b66d
No known key found for this signature in database
GPG key ID: 2BB9A077C8DD6994
2 changed files with 13 additions and 13 deletions

View file

@ -222,15 +222,15 @@ 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
# ************************************************************
ls -la /etc/nginx/bots.d/
ls -la /etc/nginx/bots.d/
ls -la /etc/nginx/
#ls -la /etc/nginx/bots.d/
#ls -la /etc/nginx/bots.d/
#ls -la /etc/nginx/
sudo chown -R www-data:www-data /etc/nginx/bots.d/
sudo chown -R www-data:www-data /etc/nginx/conf.d/
#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/
sudo cp /etc/nginx/bots.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test1/bots.d/
sudo cp /etc/nginx/conf.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test1/conf.d/
# *****************************************************************************************
# Travis now moves into running the rest of the tests in the script: section of .travis.yml

View file

@ -255,15 +255,15 @@ 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
# ************************************************************
ls -la /usr/local/nginx/bots.d/
ls -la /usr/local/nginx/conf.d/
#ls -la /usr/local/nginx/bots.d/
#ls -la /usr/local/nginx/conf.d/
sudo chown -R www-data:www-data /usr/local/nginx/bots.d/
sudo chown -R www-data:www-data /usr/local/nginx/conf.d/
#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/
sudo cp /usr/local/nginx/bots.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test2/bots.d/
sudo cp /usr/local/nginx/conf.d/* $TRAVIS_BUILD_DIR/.dev-tools/_conf_files_test2/conf.d/
# *****************************************************************************************
# Travis now moves into running the rest of the tests in the script: section of .travis.yml