#!/bin/bash # +-------------------------------------------------------------------------+ # | LEMPer.sh is a simple LEMP stack installer for Debian/Ubuntu | # |-------------------------------------------------------------------------+ # | Min requirement : GNU/Linux Debian 8, Ubuntu 16.04 or Linux Mint 17 | # | Last Update : 14/01/2020 | # | Author : MasEDI.Net (me@masedi.net) | # | Version : 1.0.0 | # +-------------------------------------------------------------------------+ # | Copyright (c) 2014-2021 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@eslabs.id so we can send you a copy immediately. | # +-------------------------------------------------------------------------+ # | Authors: Edi Septriyanto | # +-------------------------------------------------------------------------+ # Work even if somebody does "bash lemper.sh". set -e # 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 BASEDIR && \ BASEDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) # Include helper functions. if [ "$(type -t run)" != "function" ]; then . 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 Installer # header_msg echo "Starting LEMP stack installation..." echo "Please ensure that you're on a fresh install!" if ! "${AUTO_INSTALL}"; then echo "" read -t 60 -rp "Press [Enter] to continue..."