From b0cdc7e75168e75a621ea6839d2e224d61494262 Mon Sep 17 00:00:00 2001 From: Fr4nzD13trich Date: Wed, 8 Oct 2025 12:46:46 +0200 Subject: [PATCH] nginx.sh updated --- assets/shell/create_certificate.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/shell/create_certificate.sh b/assets/shell/create_certificate.sh index 29f3dba..8838853 100755 --- a/assets/shell/create_certificate.sh +++ b/assets/shell/create_certificate.sh @@ -9,24 +9,24 @@ CRS="\e[0m" ### DEPENDENCY CHECK -bin="openssl" +bin="openssl" echo -e "\n${CYN}Dependency and Privilege Check running...${CRS}\n" if (( $(id -u) == 0 )); then echo -e "${GRN}Privilege check passed...${CRS}\n" -else +else echo -e "${RED}Privilege check failed... Please run script with sudo or as root!${CRS}\n" exit 1 fi if command -v "$bin" >/dev/null 2>&1; then echo -e "${GRN}Dependency check passed...${CRS}\n" - + else echo -e "${YEL}$bin is not installed.${CRS}\n" - + while true; do read -p "Do you wish to install $bin via APT? (Y/n) : " install @@ -34,7 +34,7 @@ else touch /tmp/lomesInstallLog.txt sudo apt update && sudo apt install --install-suggests -y $bin >/tmp/lomesInstallLog.txt echo -e "\n${GRN}$bin installed. Proceeding...${CRS}\n" - break + break elif [[ "$install" == "n" || "$install" = "N" ]]; then echo -e "\n${RED}Dependencies not installed... Exiting!${CRS}\n"