I was trying to update webinoly but my site got down and the CLI stuck in some process.
I saw that NGINX service had stopped.
I wanted to reinstall NGINX as it would've fixed the problem.
I ran the purge command from the documentation in order to remove NGINX.
Here are the outputs
¡ C A U T I O N ! You are about to remove NGINX from your server!
phpMyAdmin will be removed too because depends on Nginx.
Are you sure [y/N]? **I agreed**
Do you want to delete your sites data directory (/var/www) [Y/n]? **I didn't do anything and the process continued**
¡ C A U T I O N ! You are about to remove phpMyAdmin from your server!
And then all my sites along with the databases got deleted.
Please note that it automatically proceeded when the delete sites confirmation came.
I had faced the same issue earlier, but I had thought that I had agreed by mistake.
This seems like a bug.
It would be great if:
- By default, the sites are not deleted while purging the service.It should not even ask
- And explicit flag must be defined for it to delete the sites.
- Fix the bug of the sites getting deleted without approval.
Thanks for your help!