1
0
Fork 0
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:
Henrik Hautakoski 2019-10-22 13:57:50 +02:00
parent 536d26bd40
commit 496455f534
2 changed files with 5 additions and 4 deletions

View file

@ -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 %}