kchristensen / udm-le

Let's Encrypt support for Ubiquiti UniFi OS
MIT License
593 stars 79 forks source link

How to uninstall #81

Closed astronaute77 closed 1 year ago

astronaute77 commented 1 year ago

Could you please add steps to properly uninstall udm-le?

Or even better, have an action "uninstall"

Thanks !

gtrabanco commented 1 year ago
systemctl disable udm-le
rm -rf /data/udm-le /mnt/data/udm-le

This only removes udm-le. You must restore also unifi certs.

gtrabanco commented 1 year ago

Remove certificates will cause udm to regenerate them, reference

rm -f "${UBIOS_CONTROLLER_CERT_PATH}"/*.cert "${UBIOS_CONTROLLER_CERT_PATH}"/*.key "${UBIOS_CONTROLLER_CERT_PATH}"/*.pem

Restart services to take effect the changes:

systemctl restart unifi-core
systemctl restart freeradius
kchristensen commented 1 year ago

I added a blurb to the README.md: https://github.com/kchristensen/udm-le/tree/main#uninstallation

Feel free to PR up any changes you see fit!