From bc3a8108cbb0791bd5e109e71adcd6d6ad47efb5 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Sat, 12 Feb 2022 10:22:11 +0700 Subject: [PATCH] Improved installation & removal script --- install.sh | 63 ++++++++++++++++++++++++++++++++++++++---------------- remove.sh | 9 ++++---- 2 files changed, 50 insertions(+), 22 deletions(-) diff --git a/install.sh b/install.sh index 127fd2f..338ce72 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ # | Author : MasEDI.Net (me@masedi.net) | # | Version : 2.x.x | # +-------------------------------------------------------------------------+ -# | Copyright (c) 2014-2021 MasEDI.Net (https://masedi.net/lemper) | +# | 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. | @@ -20,8 +20,9 @@ # | Authors: Edi Septriyanto | # +-------------------------------------------------------------------------+ -# Work even if somebody does "bash lemper.sh". -set -e +# 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" @@ -41,22 +42,19 @@ 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 "Starting LEMPer Stack installation..." echo "Please ensure that you're on a fresh install!" -if ! "${AUTO_INSTALL}"; then +if [[ "${AUTO_INSTALL}" != true ]]; then echo "" read -t 60 -rp "Press [Enter] to continue..."