mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-17 04:40:03 +02:00
_includes/apt-add.html: use site.apt.domain as default if include.name is not provided.
This commit is contained in:
parent
536d26bd40
commit
496455f534
2 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{% assign domain = include.name | default: site.apt.domain %}
|
||||
{% highlight bash %}
|
||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://apt.{{ include.name }}sweden.org/{{ include.repo }} bionic {{ include.components }}' {% if include.update == true %}
|
||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} bionic {{ include.components }}' {% if include.update == true %}
|
||||
$ sudo apt-get update{% endif %}
|
||||
{% endhighlight %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue