Feature: uninstall command
Use case
You want to uninstall Indie Web Server. You don’t want to know anything about its inner workings to do so.
Suggested syntax
web-server uninstall
Suggested implementation
-
Ask for confirmation:
-
Check if web server is enabled. If so, inform the person that uninstalling will disable the web server. -
Check if an ACME TLS certificate exists, if so inform the person that it will be removed.
-
-
If web server is enabled, deactivate and disable it. -
Remove:
-
The ~/.acme-tls folder -
The ~/.nodecert folder -
The web-server.service systemd service file(unnecessary as the disable command now removes it as part of its own housekeeping). -
The web-server binary from /usr/local/bin/
-