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

_includes/apt-add.html: set "dist" default value to "lsb_release -cs"

This commit is contained in:
Henrik Hautakoski 2020-02-28 14:27:46 +01:00
parent 5a3bd77883
commit ffbc785294

View file

@ -1,5 +1,5 @@
{% assign domain = include.domain | default: site.apt.domain %}
{% assign dist = include.distribution | default: "bionic" %}
{% assign dist = include.distribution | default: "`lsb_release -cs`" %}
{% highlight bash %}
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} {{ dist }} {{ include.components }}' {% if include.update == true %}
$ sudo apt-get update{% endif %}