Add option to pass CONFIG_FILE as parameter to export-config-values.sh
This commit is contained in:
parent
357b227968
commit
7a91d90a7c
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
CONFIG_FILE=/boot/hydrophonitor/configuration/hydrophonitor-config.txt
|
if [ $# -eq 1 ]; then
|
||||||
|
CONFIG_FILE=$1
|
||||||
|
else
|
||||||
|
CONFIG_FILE=/boot/hydrophonitor/hydrophonitor-config.txt
|
||||||
|
fi
|
||||||
|
|
||||||
export $(grep -v '^#' $CONFIG_FILE | tr -d '[:space:]' | xargs -d '\n')
|
export $(grep -v '^#' $CONFIG_FILE | tr -d '[:space:]' | xargs -d '\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user