File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ onex::mongo::docker::install()
44
44
45
45
onex::mongo::pre_install ()
46
46
{
47
+ # 获取 MongoDB 公钥
48
+ echo ${LINUX_PASSWORD} | sudo -S wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
49
+
47
50
# 添加 MongoDB APT 源
48
51
echo ${LINUX_PASSWORD} | sudo -S echo " deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
49
52
@@ -74,9 +77,6 @@ onex::mongo::sbs::install()
74
77
75
78
echo ${LINUX_PASSWORD} | sudo -S apt install -y gnupg
76
79
77
- # 获取 MongoDB 公钥
78
- echo ${LINUX_PASSWORD} | sudo -S wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
79
-
80
80
# 安装 MongoDB 服务端
81
81
# 以为我们uninstall时会删除配置文件,所以要使用--force-confmiss 重新安装配置文件
82
82
onex::util::sudo " apt -y -o Dpkg::Options::=" --force-confmiss" --reinstall install mongodb-org mongodb-org-server"
You can’t perform that action at this time.
0 commit comments