Refacto rpm file

This commit is contained in:
2026-01-19 13:07:11 +01:00
parent 5b0c349edb
commit ea6d872a77
4 changed files with 34 additions and 22 deletions

5
conf/sbin/certbot_renew Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
/usr/bin/env sleep $(($RANDOM % 3600));
/opt/certbot/bin/pip install --upgrade certbot certbot-nginx certbot-dns-ovh
/usr/bin/env certbot renew

View File

@@ -2,4 +2,4 @@
Description=Renew certbot certificates
[Service]
ExecStart=sleep $RANDOM && /opt/certbot/bin/pip install --upgrade certbot certbot-nginx certbot-dns-ovh && certbot renew
ExecStart=certbot_renew