Skip to content

Uninstall will even remove packages that LEMPer didn't install #182

Description

@mdmcginn

Describe the Issue / Bug
I had installed NGINX several years ago, but running LEMPer's uninstall from the command line removed NGINX, including sites-enabled and sites-available. I should have heeded the warning "Please ensure that you've backed up your critical data!"

To Reproduce
sudo ./remove.sh

Expected Behavior
The script should not uninstall packages that it didn't install. It should say "Directory not empty, so it was not removed" when attempting to uninstall them or their settings. Or the install script should have kept track of what packages had been previously installed and not try to install them. Or the READ.ME should say "LEMPer is designed for use on a clean installation of Linux, where these packages are not previously installed."

Screenshots / Screen Cast
If applicable, add screenshots / screen cast to help explain your problem.

Config File (.env)
If applicable, add part of your non-sensitive data from configuration file (.env).

System Information (please complete the following information):

  • OS: 6.18.33.2-microsoft-standard-WSL2 Ubuntu 22.04.5 LTS
  • Shell: bash
  • Version 5.1.16(1)-release

Additional Context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions