allow more than one config, also complementing a base config (#3198)

This commit is contained in:
Wolf 2022-06-30 21:09:30 +02:00 committed by GitHub
parent 1a8a6baca2
commit 24e0b40f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,10 @@ set -e
export NODE_OPTIONS="--no-deprecation"
# load config
set -a; source /mnt/hdd/app-data/stacking-sats-kraken/.env; set +a
env="/mnt/hdd/app-data/stacking-sats-kraken/.env"
set -a; . ${env}; set +a
# alternative config
test -f "${env}-"${2} && { set -a; . "${env}-"${2}; set +a; }
# switch directory
cd $(cd `dirname $0` && pwd)