Skip to content

Commit b7d6b2c

Browse files
6543silverwind
andauthored
Update templates/package/content/debian.tmpl
Co-authored-by: silverwind <me@silverwind.io> Signed-off-by: 6543 <6543@obermui.de>
1 parent ce623bc commit b7d6b2c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

templates/package/content/debian.tmpl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
<div class="ui form">
55
<div class="field">
66
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.debian.registry"}}</label>
7-
<div class="markup"><pre class="code-block"><code>{{ if gt (len .Distributions) 1 }}# please select one:
8-
DISTRIBUTION="" # {{StringUtils.Join .Distributions ", "}}
9-
10-
{{end}}{{ if gt (len .Components) 1 }}# please select one:
11-
COMPONENT="" # {{StringUtils.Join .Components ", "}}
7+
<div class="markup"><pre class="code-block"><code>{{ if gt (len .Distributions) 1 }}DISTRIBUTION="" # one of {{StringUtils.Join .Distributions ", "}}{{end}}
8+
{{ if gt (len .Components) 1 }}COMPONENT="" # one of {{StringUtils.Join .Components ", "}}
129

1310
{{end}}sudo curl <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/debian/repository.key"></origin-url> -o /etc/apt/keyrings/gitea-{{$.PackageDescriptor.Owner.Name}}.asc
1411
echo "deb [signed-by=/etc/apt/keyrings/gitea-{{$.PackageDescriptor.Owner.Name}}.asc] <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/debian"></origin-url> {{ if eq (len .Distributions) 1 }}{{ index .Distributions 0 }}{{else}}$DISTRIBUTION{{end}} {{ if eq (len .Components) 1 }}{{ index .Components 0 }}{{else}}$COMPONENT{{end}}" | sudo tee -a /etc/apt/sources.list.d/gitea.list

0 commit comments

Comments
 (0)