#!/usr/bin/env bash # +-------------------------------------------------------------------------+ # | LEMPer is a simple LEMP stack installer for Debian/Ubuntu Linux | # |-------------------------------------------------------------------------+ # | Min requirement : GNU/Linux Debian 8, Ubuntu 18.04 or Linux Mint 17 | # | Last Update : 13/02/2021 | # | Author : MasEDI.Net (me@masedi.net) | # | Version : 2.x.x | # +-------------------------------------------------------------------------+ # | Copyright (c) 2014-2022 MasEDI.Net (https://masedi.net/lemper) | # +-------------------------------------------------------------------------+ # | This source file is subject to the GNU General Public License | # | that is bundled with this package in the file LICENSE.md. | # | | # | If you did not receive a copy of the license and are unable to | # | obtain it through the world-wide-web, please send an email | # | to license@lemper.cloud so we can send you a copy immediately. | # +-------------------------------------------------------------------------+ # | Authors: Edi Septriyanto | # +-------------------------------------------------------------------------+ # Work even if somebody does "bash remove.sh". #set -exv -o pipefail # For verbose output. set -e -o pipefail # Try to re-export global path. export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Get installer base directory. export BASE_DIR && \ BASE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) # Include helper functions. if [[ "$(type -t run)" != "function" ]]; then . "${BASE_DIR}/scripts/helper.sh" fi # Make sure only root can run this installer script. requires_root "$@" # Make sure only supported distribution can run this installer script. preflight_system_check ## # Main LEMPer Uninstaller # header_msg echo "Are you sure to remove LEMPer Stack installation?" echo "Please ensure that you've backed up your critical data!" echo "" if [[ "${AUTO_REMOVE}" == false ]]; then read -rt 20 -p "Press [Enter] to continue..."