2023-04-30 15:12:15 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-04-30 15:15:53 +03:00
|
|
|
if [ $1 == "--gentmpl" ]; then
|
2023-04-30 15:12:15 +03:00
|
|
|
grep "[A-Z_ ]*=" .env -o > env-template.txt
|
|
|
|
exit 0
|
2023-04-30 15:15:53 +03:00
|
|
|
elif [ ! -z "$1" ]; then
|
|
|
|
echo "Unrecognised parameter, use --gentmpl to generate .env template"
|
|
|
|
exit 1
|
2023-04-30 15:12:15 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Installs prerequisites for some of the system scripts
|
|
|
|
|
|
|
|
python -m pip install python-dotenv
|