Preserve configs between migration run phases

This commit is contained in:
nolash 2021-09-03 00:05:43 +02:00
parent 5f6c63e207
commit 8e90fac7a0
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -8,10 +8,10 @@ else
mkdir -p $DEV_DATA_DIR
fi
if [ ! -z $DEV_CONFIG_RESET ]; then
if [ -z $DEV_CONFIG_RESET ]; then
if [ -f ${DEV_DATA_DIR}/env_reset ]; then
>&2 echo "using existing config file ${DEV_DATA_DIR}/env_reset"
exit 0
>&2 echo "importing existing configuration values from ${DEV_DATA_DIR}/env_reset"
. ${DEV_DATA_DIR}/env_reset
fi
fi