Compare commits

..

2 Commits

Author SHA1 Message Date
6ddea566f3 fix: separate systemctl restart and reenable commands
All checks were successful
Continuous Integration / lint_n_build (push) Successful in 21s
Continuous Delivery / build_n_upload (push) Successful in 22s
2026-03-08 16:45:36 +01:00
844e727b7d doc: update readme
All checks were successful
Continuous Integration / lint_n_build (push) Successful in 19s
Continuous Delivery / build_n_upload (push) Successful in 19s
2026-03-08 16:39:06 +01:00
3 changed files with 27 additions and 9 deletions

View File

@@ -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
```

View File

@@ -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"

View File

@@ -50,7 +50,8 @@ fi
# Restart services
systemctl daemon-reload
systemctl reenable --now nginx.service certbot-renew.timer
systemctl reenable nginx.service certbot-renew.timer
systemctl restart nginx.service certbot-renew.timer
%postun
# Remove folders after uninstall