Improve repo gpg keys handling
This commit is contained in:
@@ -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.x - [Unreleased]
|
||||||
|
|
||||||
|
### v3.9.8.4 - 2019-08-27
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
|
||||||
- cht.sh stack : linux online cheatsheet. Usage : `cheat <command>`. Example for tar : `cheat tar`
|
- cht.sh stack : linux online cheatsheet. Usage : `cheat <command>`. Example for tar : `cheat tar`
|
||||||
@@ -27,6 +29,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- eXplorer filemanager isn't installed with WordOps dashboard anymore, and a flag `--extplorer` is available. But it's still installed when running the command `wo stack install`
|
- eXplorer filemanager isn't installed with WordOps dashboard anymore, and a flag `--extplorer` is available. But it's still installed when running the command `wo stack install`
|
||||||
- Template rendering function now check for a .custom file before overwriting a configuration by default.
|
- Template rendering function now check for a .custom file before overwriting a configuration by default.
|
||||||
- flag `--letsencrypt=subdomain` is not required anymore, you can use `--letsencrypt` or `-le`
|
- flag `--letsencrypt=subdomain` is not required anymore, you can use `--letsencrypt` or `-le`
|
||||||
|
- Simplify APT GPG Keys import
|
||||||
|
|
||||||
|
#### Fixed
|
||||||
|
|
||||||
|
- typo error in `wo site update` : [PR #126](https://github.com/WordOps/WordOps/pull/126)
|
||||||
|
|
||||||
### v3.9.8.3 - 2019-08-21
|
### v3.9.8.3 - 2019-08-21
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
- Debian 9 (Stretch)
|
- Debian 9 (Stretch)
|
||||||
- Debian 10 (Buster) - Not ready for production
|
- Debian 10 (Buster) - Not ready for production
|
||||||
- Raspbian 9 (Stretch)
|
- Raspbian 9 (Stretch)
|
||||||
|
- Raspbian 10 (Buster) - Testing
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ def pre_pref(self, apt_packages):
|
|||||||
"""Pre settings to do before installation packages"""
|
"""Pre settings to do before installation packages"""
|
||||||
|
|
||||||
if (set(WOVariables.wo_mysql).issubset(set(apt_packages)) or
|
if (set(WOVariables.wo_mysql).issubset(set(apt_packages)) or
|
||||||
set(WOVariables.wo_mysql_client).issubset(set(apt_packages)) or
|
set(WOVariables.wo_mysql_client).issubset(set(apt_packages))):
|
||||||
set(['mariadb-backup']).issubset(set(apt_packages))):
|
set(['mariadb-backup']).issubset(set(apt_packages))):
|
||||||
# add mariadb repository excepted on raspbian and ubuntu 19.04
|
# add mariadb repository excepted on raspbian and ubuntu 19.04
|
||||||
if (not WOVariables.wo_distro == 'raspbian'):
|
if (not WOVariables.wo_distro == 'raspbian'):
|
||||||
|
|||||||
@@ -82,10 +82,7 @@ class WORepo():
|
|||||||
default keyserver is hkp://keyserver.ubuntu.com
|
default keyserver is hkp://keyserver.ubuntu.com
|
||||||
user can provide other keyserver with keyserver="hkp://xyz"
|
user can provide other keyserver with keyserver="hkp://xyz"
|
||||||
"""
|
"""
|
||||||
WOShellExec.cmd_exec(self, "gpg --keyserver {serv}"
|
WOShellExec.cmd_exec(self, "apt-key adv --keyserver {serv}"
|
||||||
.format(serv=(keyserver or
|
.format(serv=(keyserver or
|
||||||
"hkp://keyserver.ubuntu.com")) +
|
"hkp://keyserver.ubuntu.com")) +
|
||||||
" --recv-keys {key}".format(key=keyids))
|
" --recv-keys {key}".format(key=keyids))
|
||||||
WOShellExec.cmd_exec(self, "gpg -a --export --armor {0}"
|
|
||||||
.format(keyids) +
|
|
||||||
" | apt-key add - ")
|
|
||||||
|
|||||||
@@ -101,9 +101,15 @@ class WOVariables():
|
|||||||
wo_nginx_repo = ("deb http://download.opensuse.org"
|
wo_nginx_repo = ("deb http://download.opensuse.org"
|
||||||
"/repositories/home:"
|
"/repositories/home:"
|
||||||
"/virtubox:/WordOps/Debian_10/ /")
|
"/virtubox:/WordOps/Debian_10/ /")
|
||||||
else:
|
elif wo_distro == 'raspbian':
|
||||||
wo_nginx_repo = ("deb http://download.opensuse.org/repositories/home:"
|
if wo_platform_codename == 'stretch':
|
||||||
"/virtubox:/WordOps/Raspbian_9.0/ /")
|
wo_nginx_repo = ("deb http://download.opensuse.org/"
|
||||||
|
"repositories/home:"
|
||||||
|
"/virtubox:/WordOps/Raspbian_9.0/ /")
|
||||||
|
if wo_platform_codename == 'buster':
|
||||||
|
wo_nginx_repo = ("deb http://download.opensuse.org/"
|
||||||
|
"repositories/home:"
|
||||||
|
"/virtubox:/WordOps/Raspbian_10/ /")
|
||||||
|
|
||||||
wo_nginx = ["nginx-custom", "nginx-wo"]
|
wo_nginx = ["nginx-custom", "nginx-wo"]
|
||||||
wo_nginx_key = '188C9FB063F0247A'
|
wo_nginx_key = '188C9FB063F0247A'
|
||||||
@@ -137,14 +143,17 @@ class WOVariables():
|
|||||||
"http://sfo1.mirrors.digitalocean.com/mariadb/repo/"
|
"http://sfo1.mirrors.digitalocean.com/mariadb/repo/"
|
||||||
"10.3/ubuntu {codename} main"
|
"10.3/ubuntu {codename} main"
|
||||||
.format(codename=wo_platform_codename))
|
.format(codename=wo_platform_codename))
|
||||||
|
if wo_distro == 'raspbian':
|
||||||
|
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||||
|
"python3-mysqldb"]
|
||||||
else:
|
else:
|
||||||
wo_mysql_repo = ("deb [arch=amd64,ppc64el] "
|
wo_mysql_repo = ("deb [arch=amd64,ppc64el] "
|
||||||
"http://sfo1.mirrors.digitalocean.com/mariadb/repo/"
|
"http://sfo1.mirrors.digitalocean.com/mariadb/repo/"
|
||||||
"10.3/debian {codename} main"
|
"10.3/debian {codename} main"
|
||||||
.format(codename=wo_platform_codename))
|
.format(codename=wo_platform_codename))
|
||||||
|
|
||||||
wo_mysql = ["mariadb-server", "percona-toolkit",
|
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||||
"python3-mysqldb", "mariadb-backup"]
|
"python3-mysqldb", "mariadb-backup"]
|
||||||
|
|
||||||
wo_mysql_client = ["mariadb-client", "python3-mysqldb"]
|
wo_mysql_client = ["mariadb-client", "python3-mysqldb"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user