From 22665514289a8e12c8173facb55bd91a07870167 Mon Sep 17 00:00:00 2001 From: Thord Johansson Date: Sun, 30 Apr 2023 14:12:15 +0200 Subject: [PATCH] Added env template which can now be regenerated with stash.sh --gentpl --- env-template.txt | 5 +++++ setup.sh | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 env-template.txt create mode 100755 setup.sh diff --git a/env-template.txt b/env-template.txt new file mode 100644 index 0000000..0332be2 --- /dev/null +++ b/env-template.txt @@ -0,0 +1,5 @@ +STASH_IMPORT_DIR= +STASH_API_KEY= +STASH_HOST= +STASH_PORT= +FANCTL_SERVO_PIN= diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..698403c --- /dev/null +++ b/setup.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ $1 == "--gentpl" ]; then + grep "[A-Z_ ]*=" .env -o > env-template.txt + exit 0 +fi + +# Installs prerequisites for some of the system scripts + +python -m pip install python-dotenv