From 844e727b7df4f5b7ce5561109e58d545dc063991 Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 8 Mar 2026 16:39:06 +0100 Subject: [PATCH] doc: update readme --- README.md | 31 ++++++++++++++++++++++++------- files/certbot/ovh.ini | 2 +- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 098dbcc..d94c711 100644 --- a/README.md +++ b/README.md @@ -63,21 +63,38 @@ Two workflows are set up. Some commands to deploy the RPM package on server -- To add Gitea repo to your repo list: +- Add Gitea repo to your repo list: ```shell dnf config-manager --add-repo https://git.netoik.io/api/packages/samuel/rpm.repo dnf repolist | grep gitea-samuel ``` - -- To show available versions: + +- Show available versions: ```shell dnf --showduplicates netoik-rp ``` - -- To install or upgrade: + +- Create certbot ovh credentials here: + [www.ovh.com/auth/api/createToken](https://www.ovh.com/auth/api/createToken) + +- Setup environemnt file (fill values): ```shell - dnf --nogpgcheck install netoik-rp - dnf --nogpgcheck upgrade netoik-rp + cat > ~/.netoik-rp.env << EOF + OVH_ENDPOINT="" + OVH_APPLICATION_NAME="" + OVH_APPLICATION_DESCRIPTION="" + OVH_APPLICATION_KEY="" + OVH_APPLICATION_SECRET="" + OVH_CONSUMER_KEY="" + EOF + ``` + +- Install or upgrade package: + ```shell + set -a + source ~/.netoik-rp.env + dnf --nogpgcheck --refresh --assumeyes --best install netoik-rp + set +a ``` diff --git a/files/certbot/ovh.ini b/files/certbot/ovh.ini index d61277a..a4822bc 100644 --- a/files/certbot/ovh.ini +++ b/files/certbot/ovh.ini @@ -1,5 +1,5 @@ # OVH API credentials used by Certbot -# To generate a new token, go to: https://www.ovh.com/auth/api/createToken +# To generate new credentials, go to: https://www.ovh.com/auth/api/createToken dns_ovh_endpoint = "$OVH_ENDPOINT" dns_ovh_application_name = "$OVH_APPLICATION_NAME"