system-scripts/setup.sh

14 lines
299 B
Bash
Raw Normal View History

#!/bin/bash
2023-04-30 15:15:53 +03:00
if [ $1 == "--gentmpl" ]; then
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
fi
# Installs prerequisites for some of the system scripts
python -m pip install python-dotenv