Welcome to Centmin Mod Community
Register Now

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

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

  1. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    8:55 PM
    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.

    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...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.