Fix certbot command in remove step

This commit is contained in:
2026-01-19 14:34:57 +01:00
parent 21698b0ae1
commit 84e71bbdb9

View File

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