From 8ea600360bfe6c9ea3a32ecc400bc0017882cdf5 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 4 Oct 2021 22:46:35 +0800 Subject: [PATCH] install: handle lets encrypt cert update --- install/install.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/install.js b/install/install.js index edef2ce8a..149b0ed76 100644 --- a/install/install.js +++ b/install/install.js @@ -45,7 +45,7 @@ for (const line of lines) { if (d[1].startsWith('"')) values[d[0].toLowerCase()] = d[1].substr(1, d[1].length - 2); else values[d[0].toLowerCase()] = d[1]; } -if (!['ubuntu', 'arch'].includes(values.id)) log.fatal('不支持的系统'); +if (!['ubuntu', 'arch'].includes(values.id)) log.fatal('不支持的系统,请尝试手动安装'); const Arch = values.id === 'arch'; const steps = [ @@ -69,6 +69,8 @@ const steps = [ + 'mongodb-bin-4.4.5-1-x86_64.pkg.tar.zst mongodb-tools-bin-100.3.1-1-x86_64.pkg.tar.zst', ] : [ + // https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ + ['apt-get upgrade openssl -y', { retry: true }], ['wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -', { retry: true }], [`echo "deb [ arch=amd64 ] ${_MONGODB_[retry % _MONGODB_.length]} ${values.ubuntu_codename}\ /mongodb-org/4.4 multiverse" >/etc/apt/sources.list.d/mongodb-org-4.4.list && \