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

14 lines
780 B
HTML

{% assign apt-add_domain = include.domain | default: site.apt.domain %}
{% assign apt-add_dist = include.distribution | default: "[[DEFAULT]]" %}
{% highlight bash %}
{% if include.distribution %}
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} {{ include.distribution }} {{ include.components }}'
{% else %}
# For Bash like shells.
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} `lsb_release -cs` {{ include.components }}'
# If you are using fish
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }}' (lsb_release -cs) '{{ include.components }}'
{% endif %}{% if include.update == true %}
$ sudo apt-get update{% endif %}
{% endhighlight %}