diff --git a/letsencrypt/client/plugins/apache/tests/util.py b/letsencrypt/client/plugins/apache/tests/util.py index 488ecffea..5a1cf85a2 100644 --- a/letsencrypt/client/plugins/apache/tests/util.py +++ b/letsencrypt/client/plugins/apache/tests/util.py @@ -37,6 +37,10 @@ def dir_setup(test_dir="debian_apache_2_4/two_vhost_80"): config_dir = tempfile.mkdtemp("config") work_dir = tempfile.mkdtemp("work") + os.chmod(temp_dir, constants.CONFIG_DIRS_MODE) + os.chmod(config_dir, constants.CONFIG_DIRS_MODE) + os.chmod(work_dir, constants.CONFIG_DIRS_MODE) + test_configs = pkg_resources.resource_filename( "letsencrypt.client.plugins.apache.tests", "testdata/%s" % test_dir) diff --git a/letsencrypt/client/plugins/nginx/tests/util.py b/letsencrypt/client/plugins/nginx/tests/util.py index 58c5730cf..2a0b904fb 100644 --- a/letsencrypt/client/plugins/nginx/tests/util.py +++ b/letsencrypt/client/plugins/nginx/tests/util.py @@ -42,6 +42,10 @@ def dir_setup(test_dir="debian_nginx/two_vhost_80"): config_dir = tempfile.mkdtemp("config") work_dir = tempfile.mkdtemp("work") + os.chmod(temp_dir, constants.CONFIG_DIRS_MODE) + os.chmod(config_dir, constants.CONFIG_DIRS_MODE) + os.chmod(work_dir, constants.CONFIG_DIRS_MODE) + test_configs = pkg_resources.resource_filename( "letsencrypt.client.plugins.nginx.tests", test_dir)