From 1d7c7b34b2b88d7f6f70c1eee607206c865b2537 Mon Sep 17 00:00:00 2001 From: bredo Date: Thu, 18 Jul 2024 12:25:15 +1200 Subject: [PATCH] enhancement: use exec to run headless --- scripts/launch-resonite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/launch-resonite.sh b/scripts/launch-resonite.sh index baedf0c..cf5b6ee 100644 --- a/scripts/launch-resonite.sh +++ b/scripts/launch-resonite.sh @@ -7,7 +7,7 @@ find /Logs -type f -name *.log -atime +${LOG_RETENTION:-30} -delete cd /home/container/Headless/net8.0 if [ "${ENABLE_MODS}" = "true" ]; then - dotnet Resonite.dll -HeadlessConfig /Config/${CONFIG_FILE} -Logs /Logs/ -LoadAssembly Libraries/ResoniteModLoader.dll ${ADDITIONAL_ARGUMENTS} + exec dotnet Resonite.dll -HeadlessConfig /Config/${CONFIG_FILE} -Logs /Logs/ -LoadAssembly Libraries/ResoniteModLoader.dll ${ADDITIONAL_ARGUMENTS} else - dotnet Resonite.dll -HeadlessConfig /Config/${CONFIG_FILE} -Logs /Logs/ ${ADDITIONAL_ARGUMENTS} + exec dotnet Resonite.dll -HeadlessConfig /Config/${CONFIG_FILE} -Logs /Logs/ ${ADDITIONAL_ARGUMENTS} fi