Join the community 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

    30,164
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:15 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    30,164
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:15 AM
    Nginx 1.13.x
    MariaDB 5.5
    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]: