This is an automated email from the ASF dual-hosted git repository.
mykolabodnar pushed a commit to branch epm-2.5-preview1
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/epm-2.5-preview1 by this push:
new 776cf16 [epm-2.5-preview1] - Certbot install fixed
776cf16 is described below
commit 776cf16bafbf2b42ecf40dcdf18f073bdbc74050
Author: bodnarmykola <[email protected]>
AuthorDate: Fri May 7 09:36:28 2021 +0300
[epm-2.5-preview1] - Certbot install fixed
---
.../src/general/lib/os/debian/common_lib.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git
a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
index f32cb62..d835825 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -214,11 +214,10 @@ def install_certbot(os_family):
print('Installing Certbot')
if os_family == 'debian':
datalab.fab.conn.sudo('apt-get -y update')
- datalab.fab.conn.sudo('apt-get -y install
software-properties-common')
- datalab.fab.conn.sudo('add-apt-repository -y universe')
- datalab.fab.conn.sudo('add-apt-repository -y ppa:certbot/certbot')
- datalab.fab.conn.sudo('apt-get -y update')
- datalab.fab.conn.sudo('apt-get -y install certbot')
+ datalab.fab.conn.sudo('snap install core')
+ datalab.fab.conn.sudo('snap refresh core')
+ datalab.fab.conn.sudo('snap install --classic certbot')
+ datalab.fab.conn.sudo('ln -s /snap/bin/certbot /usr/bin/certbot')
elif os_family == 'redhat':
print('This OS family is not supported yet')
except Exception as err:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]