Compare commits

...

3 Commits

Author SHA1 Message Date
f575c4f0d9 Add mode non-interactive on delete cert
All checks were successful
Continuous Integration / env (push) Successful in 0s
2026-01-19 15:50:45 +01:00
32f20d5443 Cleanup sh script 2026-01-19 15:40:27 +01:00
84e71bbdb9 Fix certbot command in remove step 2026-01-19 14:34:57 +01:00
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -55,7 +55,7 @@ systemctl reenable --now nginx.service certbot-renew.timer
%postun
# Remove folders after uninstall
if [ $1 == 0 ]; then
certbot delete --cert-name netoik.io
/opt/certbot/bin/certbot delete --cert-name netoik.io --non-interactive
rm --recursive --force /opt/certbot
rm --recursive --force %{_sysconfdir}/certbot
fi