1
0
Fork 0
mirror of https://github.com/eosswedenorg/apt synced 2026-06-16 04:34:56 +02:00

_includes/apt-add.html: make distribution variable.

This commit is contained in:
Henrik Hautakoski 2020-02-27 16:38:44 +01:00
parent 5750ed4d7c
commit 4711567838

View file

@ -1,5 +1,6 @@
{% assign domain = include.domain | default: site.apt.domain %}
{% assign dist = include.distribution | default: "bionic" %}
{% 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 %}
{% endhighlight %}