mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-16 04:34:56 +02:00
_includes/apt-add.html: use site.apt.domain as default if include.name is not provided.
This commit is contained in:
parent
536d26bd40
commit
496455f534
2 changed files with 5 additions and 4 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
6
index.md
6
index.md
|
|
@ -11,7 +11,7 @@ $ curl https://{{ site.apt.domain }}/key 2> /dev/null | sudo apt-key add -
|
|||
|
||||
Then you can add one or more of your repositories:
|
||||
|
||||
{% include apt-add.html name="eos" repo="eosio" components="stable" update=true %}
|
||||
{% include apt-add.html repo="eosio" components="stable" update=true %}
|
||||
|
||||
The url is structures as follows:
|
||||
|
||||
|
|
@ -46,8 +46,8 @@ Each repository has 3 different components described below.
|
|||
|
||||
To add the `stable` `eosio` repository the following command will do:
|
||||
|
||||
{% include apt-add.html name="eos" repo="eosio" components="stable" %}
|
||||
{% include apt-add.html repo="eosio" components="stable" %}
|
||||
|
||||
To add both `edge` and `stable` components for the `main` repository:
|
||||
|
||||
{% include apt-add.html name="eos" repo="eosio" components="stable edge" %}
|
||||
{% include apt-add.html repo="eosio" components="stable edge" %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue