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"