#!/bin/bash # Setup logging logfile="/home/${admin_username}/custom-data.log" exec > $logfile 2>&1 python3 -V sudo apt update sudo apt install -y python3-pip python3-flask python3 -m flask --version sudo cat << EOF > /home/${admin_username}/hello.py from flask import Flask import requests app = Flask(__name__) import requests @app.route('/') def hello_world(): return """ Taco Wagon

Vroom! Vroom!🚗🌮🌮🌮

""" EOF chmod +x /home/${admin_username}/hello.py sudo -b FLASK_APP=/home/${admin_username}/hello.py flask run --host=0.0.0.0 --port=${port}