From d16f7efb3bb7b7b4282f20b7b333811cdf1b93d8 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 6 Sep 2019 16:25:56 +0200 Subject: [PATCH] update changelog --- CHANGELOG.md | 2 ++ wo/cli/plugins/site_functions.py | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 020bb19..3777422 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### v3.9.x - [Unreleased] +### v3.9.8.11 - 2019-09-06 + #### Changed - Improved general logs display diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index db8b466..b6a1355 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -1738,3 +1738,16 @@ def archivedCertificateHandle(self, domain): .format(domain)) return ssl + + +def setuprocketchat(self): + if ((not WOVariables.wo_platform_codename == 'bionic') and + (not WOVariables.wo_platform_codename == 'xenial')): + Log.info(self, "Rocket.chat is only available on Ubuntu 16.04 " + "& 18.04 LTS") + return False + else: + if not WOAptGet.is_installed(self, 'snapd'): + WOAptGet.install(self, ["snapd"]) + if WOShellExec.cmd_exec(self, "snap install rocketchat-server"): + return True