Browse Source

create /opt if not exist

develop
Prabuddha Chakraborty 9 years ago
parent
commit
bbea3b0b44
  1. 3
      ee/cli/plugins/site_functions.py
  2. 2
      ee/core/aptget.py

3
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/')

2
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:

Loading…
Cancel
Save