nginx.sh updated
This commit is contained in:
parent
1ad74220d5
commit
b0cdc7e751
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue