#!/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/2022 | # | 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 install.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/utils.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 Installer # header_msg echo "Starting LEMPer Stack installation..." echo "Please ensure that you're on a fresh install!" if [[ "${AUTO_INSTALL}" != true ]]; then echo "" read -t 60 -rp "Press [Enter] to continue..."