Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@KN4CK3R awesome and thanks for your work on this!
I do have some small recommendations:
Use of apt-key is deprecated and won't be available after Debian 11 and Ubuntu 22.04.
curl .../debian/repository.key | sudo apt-key add -
sudo curl ..../debian/repository.key -o /etc/trusted.gpg.d/gitea-<repo owner>.asc
Similarly, for instructions on adding the repo URLs to apt sources, consider using
/etc/apt/sources.list.d
directory instead of editing/etc/apt/sources.list
file, but this is a preference for each user:echo "deb https://{AppUrl}/debian {distribution} {component}" >> /etc/apt/sources.list
echo "deb https://{AppUrl}/debian {distribution} {component}" | sudo tee /etc/apt/sources.list.d/gitea-{owner}.list
or even have one single file for all Gitea repo sources and a line for each user repo.
echo "deb .../api/packages/foo/debian bionic main" | sudo tee -a /etc/apt/sources.list.d/gitea.list
echo "deb .../api/packages/bar/debian bullseye main" | sudo tee -a /etc/apt/sources.list.d/gitea.list
Even if using
/etc/apt/sources.list
is kept, replace redirection (>>
) with| sudo tee