diff --git a/remove.sh b/remove.sh index 6a1f1af..f974e8f 100755 --- a/remove.sh +++ b/remove.sh @@ -4,7 +4,7 @@ # | LEMPer is a simple LEMP stack installer for Debian/Ubuntu Linux | # |-------------------------------------------------------------------------+ # | Min requirement : GNU/Linux Debian 8, Ubuntu 16.04 or Linux Mint 17 | -# | Last Update : 18/07/2021 | +# | Last Update : 10/12/2021 | # | Author : MasEDI.Net (me@masedi.net) | # | Version : 2.x.x | # +-------------------------------------------------------------------------+ @@ -27,12 +27,12 @@ set -e export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Get installer base directory. -export BASEDIR && \ -BASEDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) +export BASE_DIR && \ +BASE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) # Include helper functions. -if [ "$(type -t run)" != "function" ]; then - . ./scripts/helper.sh +if [[ "$(type -t run)" != "function" ]]; then + . "${BASE_DIR}/scripts/helper.sh" fi # Make sure only root can run this installer script. @@ -47,18 +47,16 @@ preflight_system_check # header_msg -echo "Are you sure to remove LEMP stack installation?" +echo "Are you sure to remove LEMPer Stack installation?" echo "Please ensure that you've backed up your critical data!" +echo "" -if ! "${AUTO_REMOVE}"; then - echo "" +if [[ "${AUTO_REMOVE}" == false ]]; then read -rt 20 -p "Press [Enter] to continue..."