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:
|
You can regenerate `env-template.txt` based on the current .env file with:
|
||||||
```bash
|
```bash
|
||||||
./setup.sh --gentpl
|
./setup.sh --gentmpl
|
||||||
```
|
```
|
||||||
|
|
5
setup.sh
5
setup.sh
|
@ -1,8 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $1 == "--gentpl" ]; then
|
if [ $1 == "--gentmpl" ]; then
|
||||||
grep "[A-Z_ ]*=" .env -o > env-template.txt
|
grep "[A-Z_ ]*=" .env -o > env-template.txt
|
||||||
exit 0
|
exit 0
|
||||||
|
elif [ ! -z "$1" ]; then
|
||||||
|
echo "Unrecognised parameter, use --gentmpl to generate .env template"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Installs prerequisites for some of the system scripts
|
# Installs prerequisites for some of the system scripts
|
||||||
|
|
Loading…
Reference in New Issue