It would be great to echo the name of the database as you uninstall it.. or at least give a prompt to ask if you want to drop it. /root/tools/wp_uninstall_domain.com.au.sh ------------------------------------------------------------------------- Do you want to uninstall/delete WP install for domain.com.au This will delete all data from /home/nginx/domains/domain.com.au including any non-wordpress data installed at /home/nginx/domains/domain.com.au Note: This script will not drop the database, please remove xyzssksksk database using this command mysql xxxxxxxx ------------------------------------------------------------------------- Uninstall WP Install For domain.com.au [y/n]: y Restarting nginx (via systemctl): [ OK ]
done just updated 123.09beta01 with the change for all new wordpress auto installs via centmin.sh menu option 22
Also, just thinking.. is it possible to add a new directory under /home/nginx/domains/domain.tld/ called "tools" or "quickref". This can include an output of vhost SSL configuration locations, nginx, steps to reset wp-login password, wp db and login details, and even the uninstall script itself. At the moment, I am storing all this information in a secure location locally, but would be nice to have that information easily on hand in a good location like /home/nginx/domains/domain.tld/quickref/
some of it is at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS but sensitive stuff probably isn't ideal as despite mentioning Centmin Mod isn't for shared hosting, I know some folks are hosting other clients/folks using Centmin Mod and having that info accessible within the site would be just too easy for folks to peak into under /home/nginx/domains/*