flask config added
This commit is contained in:
parent
4e5339df5a
commit
91cc993841
2 changed files with 13 additions and 0 deletions
12
assets/config/flask/lomes-app.py
Normal file
12
assets/config/flask/lomes-app.py
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/python3
|
||||||
|
|
||||||
|
from flask import Flask, render_template
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def index():
|
||||||
|
return "TEMPLATE"
|
||||||
|
|
||||||
|
|
||||||
|
app.run(host="0.0.0.0", port=5000)
|
||||||
|
|
@ -207,6 +207,7 @@ fi
|
||||||
|
|
||||||
if [ -f "/tmp/LoMeS/honacha" ]; then ### HOST NAME CHANGE !?
|
if [ -f "/tmp/LoMeS/honacha" ]; then ### HOST NAME CHANGE !?
|
||||||
echo -e "\n ${YEL}During setup you changed this machines host name. For the change to take effect, you should reboot! "
|
echo -e "\n ${YEL}During setup you changed this machines host name. For the change to take effect, you should reboot! "
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p " Would you like to reboot? (Y/n) --> " reboot
|
read -p " Would you like to reboot? (Y/n) --> " reboot
|
||||||
echo -e "${CRS}"
|
echo -e "${CRS}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue