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
echo -e "$bin is not installed.\n"
read -p "Do you wish to install $bin via APT? : " install
if [$install == "yY"]; then
sudo apt update && sudo apt install -y $bin
echo -e "\n$bin installed. Proceeding...\n"
elif [$install == "nN"]; then
echo -e "Dependencies not installed... Exiting"
exit 0
fi
while true; do
read -p "Do you wish to install $bin via APT? : " install
if ["$install" == "yY"]; then
sudo apt update && sudo apt install -y $bin
echo -e "\n$bin installed. Proceeding...\n"
elif ["$install" == "nN"];
echo -e "Dependencies not installed... Exiting"
exit 0
else
echo -e "Invalid response... Try again..."
fi
done
fi
#sudo mkdir -p /etc/nginx/ssl ;