Added env template which can now be regenerated with stash.sh --gentpl

This commit is contained in:
Thord Johansson 2023-04-30 14:12:15 +02:00
parent a48fa91e6f
commit 2266551428
2 changed files with 15 additions and 0 deletions

5
env-template.txt Normal file
View File

@ -0,0 +1,5 @@
STASH_IMPORT_DIR=
STASH_API_KEY=
STASH_HOST=
STASH_PORT=
FANCTL_SERVO_PIN=

10
setup.sh Executable file
View File

@ -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