From d0dd509ca25180688d36fa26cedb059db089cf6c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 13 Feb 2019 21:17:24 +0100 Subject: [PATCH] Sometimes there are folders in conf/ ;P --- package_linter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package_linter.py b/package_linter.py index 3d33c01..242767d 100755 --- a/package_linter.py +++ b/package_linter.py @@ -123,6 +123,8 @@ def check_files_exist(app_path): print_warning("Using a separate php-fpm.ini file is deprecated. Please merge your php-fpm directives directly in the pool file. (c.f. https://github.com/YunoHost-Apps/nextcloud_ynh/issues/138 )") for filename in os.listdir(app_path + "/conf"): + if not os.path.isfile(filename): + continue content = read_file_raw(app_path + "/conf/" + filename) if "location" in content and "add_header" in content: print_warning("Do not use 'add_header' in the nginx conf. Use 'more_set_headers' instead. (See https://www.peterbe.com/plog/be-very-careful-with-your-add_header-in-nginx and https://github.com/openresty/headers-more-nginx-module#more_set_headers )")