nginx.sh updated
This commit is contained in:
parent
7a938f58c3
commit
ac7ede83b7
1 changed files with 5 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
### DEPENDENCY CHECK
|
### DEPENDENCY CHECK
|
||||||
|
|
||||||
bin="openssl"
|
bin="openssll"
|
||||||
|
|
||||||
echo -e "\nDependency and Privilege Check running...\n"
|
echo -e "\nDependency and Privilege Check running...\n"
|
||||||
|
|
||||||
|
|
@ -22,13 +22,14 @@ else
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Do you wish to install $bin via APT? : " install
|
read -p "Do you wish to install $bin via APT? : " install
|
||||||
if ["$install" == "yY"]; then
|
if [[ "$install" = "y" || "$install" = "Y" ]]; then
|
||||||
sudo apt update && sudo apt install -y $bin
|
sudo apt update && sudo apt install -y $bin
|
||||||
echo -e "\n$bin installed. Proceeding...\n"
|
echo -e "\n$bin installed. Proceeding...\n"
|
||||||
|
|
||||||
elif ["$install" == "nN"];
|
elif [[ "$install" == "n" || "$install" = "N" ]]; then
|
||||||
echo -e "Dependencies not installed... Exiting"
|
echo -e "Dependencies not installed... Exiting"
|
||||||
exit 0
|
exit 1
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "Invalid response... Try again..."
|
echo -e "Invalid response... Try again..."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue