Discover Centmin Mod today
Register Now

uninstall script feature request

Discussion in 'Feature Requests & Suggestions' started by joshuah, Apr 29, 2017.

  1. joshuah

    joshuah Member

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    1:46 AM
    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 ]
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,963
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    12:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    done just updated 123.09beta01 with the change for all new wordpress auto installs via centmin.sh menu option 22 :)
     
    • Winner Winner x 1
  3. joshuah

    joshuah Member

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    1:46 AM
    Awesome mate!! :) Thanks again.
     
  4. joshuah

    joshuah Member

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    1:46 AM
    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/
     
  5. joshuah

    joshuah Member

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    1:46 AM
    I honestly think that would be AWESOME :) Makes admin life much easier.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,963
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    12:46 AM
    Nginx 1.13.x
    MariaDB 5.5