Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch update inc/wpsetup.inc centmin.sh menu option 22

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 15, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    49,869
    11,482
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,834
    Local Time:
    8:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    update inc/wpsetup.inc centmin.sh menu option 22

    update wordpress uninstall script with confirmation prompt message before actual deletion to allow end user to cancel the deletion run before it happens as suggested at https://community.centminmod.com/threads/wordpress-uninstall-script-changes.11342/

    for existing users who installed wordpress via centmin.sh menu option 22, you can manually update your uninstall scripts with this update by editing your /root/tools/wp_uninstall_${vhostname}.sh where ${vhostname} is your domain.com name and adding after #/bin/bash line the following code.

    Important replace all instances of ${vhostname} below with your domain.com name
    Code (Text):
    #/bin/bash
    echo "-------------------------------------------------------------------------"
    echo "Do you want to uninstall/delete WP install for ${vhostname}"
    echo "This will delete all data from /home/nginx/domains/${vhostname}"
    echo "including any non-wordpress data installed at /home/nginx/domains/${vhostname}"
    echo "-------------------------------------------------------------------------"
    read -ep "Uninstall WP Install For ${vhostname} [y/n]: " uninstall
    echo
    if [[ "$uninstall" != [yY] ]]; then
      exit
    fi
    


    Continue reading...


    123.09beta01 branch
     
    Last edited: Apr 15, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    49,869
    11,482
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,834
    Local Time:
    8:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    example
    Code (Text):
    -------------------------------------------------------------------------
    Do you want to uninstall/delete WP install for domain.com
    This will delete all data from /home/nginx/domains/domain.com
    including any non-wordpress data installed at /home/nginx/domains/domain.com
    -------------------------------------------------------------------------
    Uninstall WP Install For domain.com [y/n]: