diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 4a9f9d0b..c201b76f 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -65,7 +65,14 @@ class EEStackController(CementBaseController): "debconf-set-selections".format(chars=chars)) @expose(hide=True) - def post_pref(self, packages): + def post_pref(self, apt_packages, packages): + if len(apt_packages): + if "postfix" in apt_packages: + pass + pass + if len(packages): + if any('/usr/bin/wp' == x[1] for x in packages): + EEShellExec.cmd_exec("chmod +x /usr/bin/wp") pass @expose() diff --git a/ee/core/download.py b/ee/core/download.py index 62b48dc7..24a7f9da 100644 --- a/ee/core/download.py +++ b/ee/core/download.py @@ -17,7 +17,9 @@ class EEDownload(): directory = os.path.dirname(filename) if not os.path.exists(directory): os.makedirs(directory) + print("Downloading "+os.path.basename(url)) urllib.request.urlretrieve(url, filename) + print("Done") return True except urllib.error.URLError as e: print("Unable to donwload file, [{err}]"