From 37412f537a0fcccd47815c3a9ba32467b1028ca3 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 19 Aug 2019 17:54:18 +0200 Subject: [PATCH] Set isdir --- wo/cli/plugins/stack_pref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index d7ca7e5..0069039 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -484,7 +484,7 @@ def post_pref(self, apt_packages, packages): os.makedirs('{0}22222/cert' .format(ngxroot)) - if not os.path.exists('{0}22222/conf/nginx' + if not os.path.isdir('{0}22222/conf/nginx' .format(ngxroot)): Log.debug(self, "Creating directory " "{0}22222/conf/nginx"