Refacto rpm file
This commit is contained in:
5
conf/sbin/certbot_renew
Normal file
5
conf/sbin/certbot_renew
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user