nginx.sh updated

This commit is contained in:
Fr4nz D13trich 2025-10-08 09:02:41 +02:00
parent 6c7862d65c
commit 7a938f58c3

View file

@ -19,17 +19,20 @@ if command -v "$bin" >/dev/null 2>&1; then
else else
echo -e "$bin is not installed.\n" echo -e "$bin is not installed.\n"
read -p "Do you wish to install $bin via APT? : " install
if [$install == "yY"]; then while true; do
sudo apt update && sudo apt install -y $bin read -p "Do you wish to install $bin via APT? : " install
echo -e "\n$bin installed. Proceeding...\n" if ["$install" == "yY"]; then
sudo apt update && sudo apt install -y $bin
elif [$install == "nN"]; then echo -e "\n$bin installed. Proceeding...\n"
echo -e "Dependencies not installed... Exiting"
exit 0
fi
elif ["$install" == "nN"];
echo -e "Dependencies not installed... Exiting"
exit 0
else
echo -e "Invalid response... Try again..."
fi
done
fi fi
#sudo mkdir -p /etc/nginx/ssl ; #sudo mkdir -p /etc/nginx/ssl ;