19 lines
440 B
Bash
Executable File
19 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $1 == "--gentmpl" ]; then
|
|
grep "[A-Z_ ]*=" .env -o > env-template.txt
|
|
exit 0
|
|
elif [ ! -z "$1" ]; then
|
|
echo "Unrecognised parameter, use --gentmpl to generate .env template"
|
|
exit 1
|
|
fi
|
|
|
|
# Installs prerequisites for some of the system scripts
|
|
# Redundant package names are acceptable as this improves readability
|
|
|
|
# General
|
|
python -m pip install python-dotenv
|
|
|
|
# Stasher
|
|
python -m pip install requests lxml python-dotenv
|