Skip to content

Commit 6915f32

Browse files
authored
Merge pull request #1 from superproj/master
修复 onex.sh 中 grep 模式关键字匹配失败问题
2 parents 4a8c5b3 + 5ae00a3 commit 6915f32

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/usercenter/biz/user/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
v1 "github.com/superproj/onex/pkg/api/usercenter/v1"
1616
)
1717

18-
// UserBiz defines methods used to handle user rquest.
18+
// UserBiz defines methods used to handle user request.
1919
type UserBiz interface {
2020
Create(ctx context.Context, rq *v1.CreateUserRequest) (*v1.UserReply, error)
2121
List(ctx context.Context, rq *v1.ListUserRequest) (*v1.ListUserResponse, error)

scripts/installation/mongo.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ onex::mongo::docker::install()
4444

4545
onex::mongo::pre_install()
4646
{
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+
4750
# 添加 MongoDB APT 源
48-
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
51+
echo ${LINUX_PASSWORD} | sudo -S echo "deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
4952

5053
# 安装libssl1.1,否则安装 mongo 时会报以下错误:
5154
# mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.1) but it is not installable
@@ -74,9 +77,6 @@ onex::mongo::sbs::install()
7477

7578
echo ${LINUX_PASSWORD} | sudo -S apt install -y gnupg
7679

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-
8080
# 安装 MongoDB 服务端
8181
# 以为我们uninstall时会删除配置文件,所以要使用--force-confmiss 重新安装配置文件
8282
onex::util::sudo "apt -y -o Dpkg::Options::="--force-confmiss" --reinstall install mongodb-org mongodb-org-server"

scripts/make-rules/tools.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ _install.kubeconform: ## Install kubeconform command line tool.
173173

174174
.PHONY: _install.kubectl
175175
_install.kubectl: ## Install kubectl command line tool.
176-
@curl --create-dirs -L -o $$HOME/bin/kubectl "https://dl.k8s.io/release/$(shell curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
176+
@curl --create-dirs -L -o $$HOME/bin/kubectl "https://dl.k8s.io/release/$(shell curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(shell $(GO) env GOHOSTARCH)/kubectl"
177177
@chmod +x $$HOME/bin/kubectl
178178
@$(SCRIPTS_DIR)/add-completion.sh kubectl bash
179179

0 commit comments

Comments
 (0)