5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2025-02-28 21:01:33 +00:00

fix fedora installation error

`sudo tee` will run as root

`sudo cat` doesn't do anything

you would get this error:
```
[rany@HPipi ~]$ sudo cat > /etc/yum.repos.d/yggdrasil.repo << EOF
> [yggdrasil]
> name = Yggdrasil
> baseurl = https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/rpm/
> gpgcheck=1
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-yggdrasil
> EOF
bash: /etc/yum.repos.d/yggdrasil.repo: Permission denied
```
This commit is contained in:
Rany 2020-01-30 22:02:30 +02:00 committed by GitHub
parent 0ea15e2f93
commit 4a64567728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,13 +21,11 @@ gpg --armor --no-comment --export-options export-minimal --export 569130E8CA20FB
Add the repository: Add the repository:
``` ```
sudo cat > /etc/yum.repos.d/yggdrasil.repo << EOF echo '[yggdrasil]
[yggdrasil]
name = Yggdrasil name = Yggdrasil
baseurl = https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/rpm/ baseurl = https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/rpm/
gpgcheck=1 gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-yggdrasil gpgkey=file:///etc/pki/rpm-gpg/RP^CGPG-KEY-yggdrasil' | sudo tee /etc/yum.repos.d/yggdrasil.repo
EOF
``` ```
Create the `yggdrasil` group on your system: Create the `yggdrasil` group on your system: