mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-18 04:50:03 +02:00
_includes/apt-add.html: make distribution variable.
This commit is contained in:
parent
5750ed4d7c
commit
4711567838
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{% assign domain = include.domain | default: site.apt.domain %}
|
{% assign domain = include.domain | default: site.apt.domain %}
|
||||||
|
{% assign dist = include.distribution | default: "bionic" %}
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} bionic {{ include.components }}' {% if include.update == true %}
|
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} {{ dist }} {{ include.components }}' {% if include.update == true %}
|
||||||
$ sudo apt-get update{% endif %}
|
$ sudo apt-get update{% endif %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue