echo -e "${RED}Port configuration needed.${RESET} Something (probably your wireless router) is blocking us from serving this page to the rest of the internet."
echo "Port forwarding is relatively simple, but as it stands it is beyond the scope of this script to be able to automate it."
echo -e "You'll probably need to look up the login information for your specific router and forward the red ports to the local IP of this computer (${BOLD}${LOCAL_IP}${RESET})."
echo -e "You can log into your router at this IP address: ${BOLD}${ROUTER_IP}${RESET}"
echo "That's all the help I can give you regarding port forwarding. Good luck!"
echo ""
if [ "$OPEN" -eq 0 ]; then
say "${RED}Port configuration needed.${RESET} Something (probably your wireless router) is blocking us from serving this page to the rest of the internet."
say "Port forwarding is relatively simple, but as it stands it is beyond the scope of this script to be able to automate it."
say "You'll probably need to look up the login information for your specific router and forward the red ports to the local IP of this computer (${BOLD}${LOCAL_IP}${RESET})."
say "You can log into your router at this IP address: ${BOLD}${ROUTER_IP}${RESET}"
say "That's all the help I can give you regarding port forwarding. Good luck!"
# Script for installing a simple Flask server and deploying it
# Bare Metal Alchemist, 2022
source ingredients/lead
. ingredients/lead
source ingredients/iron
source ingredients/copper
@ -31,7 +31,7 @@ say "Well, as an alchemy-themed toolkit, I must say: ${GREEN}good decision :)${R
say ""
# Make sure this script isn't being run with sudo in front
if["$EUID" -eq 0];then
if["$(id -u)" -eq 0];then
say "${RED}${BOLD}Woah there!${RESET} Seems you're running this script as a superuser."
say ""
say "That might cause some issues with permissions and whatnot. Run this script as your default user (without sudo) and I'll ask you when I need superuser permissions"
@ -40,11 +40,10 @@ if [ "$EUID" -eq 0 ]; then
fi
say "${ULINE}Making sure we've got the basics...${RESET}"
echo -e"(you'll probably need to input ${BLUE}your 'sudo' password${RESET} here)"
say"(you'll probably need to input ${BLUE}your 'sudo' password${RESET} here)"