Switch config export script to get config file as argument

This commit is contained in:
Satu Koskinen 2022-10-11 09:19:50 +03:00
parent ef5c7d03cc
commit 89701ca893

View File

@ -1,5 +1,5 @@
#!/bin/sh
#!/bin/bash
CONFIG_FILE=/boot/hydrophonitor/configuration/hydrophonitor-config.txt
CONFIG_FILE=$1
export $(grep -v '^#' $CONFIG_FILE | xargs -d '\n')
export $(grep -v '^#' $CONFIG_FILE | tr -d '[:space:]' | xargs -d '\n')