Skip to content

Commit 0787518

Browse files
committed
gitlab-ce: port changes
mirrorz-org/mirrorz-help@d548101
1 parent d8c8fb7 commit 0787518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab-ce/deb.zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
首先信任 GitLab 的 GPG 公钥:
44

55
<tmpl z-lang="bash">
6-
curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>/dev/null
6+
curl -fsSL https://packages.gitlab.com/gpg.key | {{sudo}}gpg --dearmor > /usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg
77
</tmpl>
88

99
再选择你的 Debian/Ubuntu 版本,将下方内容写入 `/etc/apt/sources.list.d/gitlab-ce.list`
1010

1111
<tmpl z-input="release" z-path="/etc/apt/sources.list.d/gitlab-ce.list">
12-
deb {{endpoint}}/{{os}} {{release}} main
12+
deb [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] {{endpoint}}/{{os}} {{release}} main
1313
</tmpl>
1414

1515
安装 gitlab-ce:

0 commit comments

Comments
 (0)