From 22fc0e076b54349480b4db0d9248c0621b7625ba Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 5 Dec 2021 16:49:40 +0100 Subject: [PATCH] cloud-init per boot --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d23e97..de449ee 100644 --- a/README.md +++ b/README.md @@ -118,13 +118,17 @@ write_files: DEBUG=1 CACHE=diskcache CACHE_SIZE=1073741824 + - path: /var/lib/cloud/scripts/per-boot/morss.sh + permissions: 744 + content: | + #!/bin/sh + gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - --daemon morss runcmd: - update-ca-certificates - iptables -I INPUT 6 -m state --state NEW -p tcp --dport {PORT:-8000} -j ACCEPT - netfilter-persistent save - pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full] - - gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss ``` ## Run