Changed from gentpl to gentmpl
This commit is contained in:
parent
715efb322a
commit
a7135c8423
|
@ -4,5 +4,5 @@ Some useful system scripts for things like fan control and other convenience.
|
|||
|
||||
You can regenerate `env-template.txt` based on the current .env file with:
|
||||
```bash
|
||||
./setup.sh --gentpl
|
||||
./setup.sh --gentmpl
|
||||
```
|
||||
|
|
5
setup.sh
5
setup.sh
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $1 == "--gentpl" ]; then
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue