My first bash script; working well except for this line:
# MAINTENANCE MODE ON
while true; do
read -p "TURN ON MAINTENANCE? (Y/N)" yn
case $yn in
[Yy]* ) sudo /root/Nginx-Maintenance-Mode/maintenance.sh example.com on;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
done
This works but after running the command it is asking me the same question again; I don't know why.