From 4ee4e69e049910609e2b18279e15d42bc473e65e Mon Sep 17 00:00:00 2001 From: brodokk Date: Wed, 17 Nov 2021 00:27:31 +0100 Subject: Fix neosvr config file installation process --- entrypoint.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh index e4c1b80..2c02ea7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,10 +22,16 @@ if [ -n "${INSTALL_APPS}" ]; then IFS=$OLD_IFS fi -echo "setting up neos config from env" - +ORIGIN_CONFIG_PATH="config.json_base" CONFIG_PATH='/steam/740250/Config/Config.json' +if [[ -f "$ORIGIN_CONFIG_PATH" ]]; then + echo "Neos config file not found, setting it up..." + mv $ORIGIN_CONFIG_PATH $CONFIG_PATH +fi + +echo "Setting up neos config from env" + cat $CONFIG_PATH | jq --arg u "${NEOSVR_USER}" '.loginCredential = $u' | jq --arg p "${NEOSVR_PWD}" '.loginPassword = $p' | sponge $CONFIG_PATH arguments=$@ -- cgit v1.2.1