diff --git a/CHANGELOG.md b/CHANGELOG.md index 360a141..8df5576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Extplorer filemanager - Enable OSCP Stapling with Let's Encrypt - Compress database backup with pigz before updating sites +- Add support for Ubuntu 19.04 disco #### Changed diff --git a/README.md b/README.md index 8c028b7..17df59f 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,14 @@

-build +build MIT Commits -GitHub release - +GitHub release +
+Badge Twitter +Badge Slack +

@@ -27,10 +30,9 @@ License

- WordOps site • -Documentation • -Community forum • -Slack + WordOps.net • +Documentation • +Community forum

@@ -53,6 +55,7 @@ - Ubuntu 16.04 LTS (Xenial) - Ubuntu 18.04 LTS (Bionic) +- Ubuntu 19.04 (Disco) - Debian 8 (Jessie) - Debian 9 (Stretch) diff --git a/install b/install index 1dbc233..1eb57b4 100755 --- a/install +++ b/install @@ -139,9 +139,9 @@ if [ -z "$wo_force_install" ]; then wo_lib_echo_fail "other Linux distributions and perhaps even Unix deratives." exit 100 else - check_wo_linux_distro=$(lsb_release -sc | grep -E "trusty|xenial|bionic|jessie|stretch") + check_wo_linux_distro=$(lsb_release -sc | grep -E "trusty|xenial|bionic|disco|jessie|stretch") if [ -z "$check_wo_linux_distro" ]; then - wo_lib_echo_fail "WordOps (wo) only supports Ubuntu 14.04/16.04/18.04, Debian 8.x and Debian 9.x" + wo_lib_echo_fail "WordOps (wo) only supports Ubuntu 14.04/16.04/18.04/19.04 LTS, Debian 8.x and Debian 9.x" exit 100 fi fi diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 732fbea..8eafe59 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -92,21 +92,22 @@ class WOStackController(CementBaseController): """Pre settings to do before installation packages""" if set(WOVariables.wo_mysql).issubset(set(apt_packages)): - Log.info(self, "Adding repository for MySQL, please wait...") - mysql_pref = ("Package: *\nPin: origin " - "sfo1.mirrors.digitalocean.com" - "\nPin-Priority: 1000\n") - with open('/etc/apt/preferences.d/' - 'MariaDB.pref', 'w') as mysql_pref_file: - mysql_pref_file.write(mysql_pref) - WORepo.add(self, repo_url=WOVariables.wo_mysql_repo) - Log.debug(self, 'Adding key for {0}' - .format(WOVariables.wo_mysql_repo)) - WORepo.add_key(self, '0xcbcb082a1bb943db', - keyserver="keyserver.ubuntu.com") - WORepo.add_key(self, '0xF1656F24C74CD1D8', - keyserver="keyserver.ubuntu.com") - chars = ''.join(random.sample(string.ascii_letters, 16)) + if (WOVariables.wo_platform_codename != 'disco'): + Log.info(self, "Adding repository for MySQL, please wait...") + mysql_pref = ("Package: *\nPin: origin " + "sfo1.mirrors.digitalocean.com" + "\nPin-Priority: 1000\n") + with open('/etc/apt/preferences.d/' + 'MariaDB.pref', 'w') as mysql_pref_file: + mysql_pref_file.write(mysql_pref) + WORepo.add(self, repo_url=WOVariables.wo_mysql_repo) + Log.debug(self, 'Adding key for {0}' + .format(WOVariables.wo_mysql_repo)) + WORepo.add_key(self, '0xcbcb082a1bb943db', + keyserver="keyserver.ubuntu.com") + WORepo.add_key(self, '0xF1656F24C74CD1D8', + keyserver="keyserver.ubuntu.com") + chars = ''.join(random.sample(string.ascii_letters, 24)) Log.debug(self, "Pre-seeding MySQL") Log.debug(self, "echo \"mariadb-server-10.3 " "mysql-server/root_password " diff --git a/wo/core/variables.py b/wo/core/variables.py index 1fae267..293d79a 100644 --- a/wo/core/variables.py +++ b/wo/core/variables.py @@ -13,7 +13,7 @@ class WOVariables(): # WordOps version wo_version = "3.9.5" # WordOps packages versions - wo_wp_cli = "2.1.0" + wo_wp_cli = "2.2.0" wo_adminer = "4.7.1" # Get WPCLI path @@ -102,6 +102,9 @@ class WOVariables(): elif wo_platform_codename == 'bionic': wo_nginx_repo = ("deb http://download.opensuse.org/repositories/home:" "/virtubox:/WordOps/xUbuntu_18.04/ /") + elif wo_platform_codename == 'disco': + wo_nginx_repo = ("deb http://download.opensuse.org/repositories/home:" + "/virtubox:/WordOps/xUbuntu_19.04/ /") elif wo_platform_codename == 'jessie': wo_nginx_repo = ("deb http://download.opensuse.org/repositories/home:" "/virtubox:/WordOps/Debian_8.0/ /")