diff --git a/_includes/apt-add.html b/_includes/apt-add.html index f1b43bc..71e9129 100644 --- a/_includes/apt-add.html +++ b/_includes/apt-add.html @@ -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 %} diff --git a/index.md b/index.md index 6bcb660..379a355 100644 --- a/index.md +++ b/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" %}