From bbea3b0b4416118e8dda19d78e601c8280203b53 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 13 Jan 2016 13:59:14 +0530 Subject: [PATCH] create /opt if not exist --- ee/cli/plugins/site_functions.py | 3 ++- ee/core/aptget.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index b6c8b4cb..ebcbad90 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -1186,7 +1186,8 @@ def operateOnPagespeed(self, data): def cloneLetsEncrypt(self): letsencrypt_repo = "https://github.com/letsencrypt/letsencrypt" - + if not os.path.isdir("/opt"): + EEFileUtils.mkdir(self,"/opt") try: Log.info(self, "Downloading {0:20}".format("LetsEncrypt"), end=' ') EEFileUtils.chdir(self, '/opt/') diff --git a/ee/core/aptget.py b/ee/core/aptget.py index bd05243f..14482739 100644 --- a/ee/core/aptget.py +++ b/ee/core/aptget.py @@ -198,7 +198,7 @@ class EEAptGet(): def download_only(self,package_name,repo_url=None,repo_key=None): """ - Similar to `apt-get install --download-only` + Similar to `apt-get install --download-only PACKAGE_NAME` """ packages = ' '.join(package_name) try: