From 9a55232bba49ef17cf347398687f9d47bbec83df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:45:38 +0000 Subject: [PATCH] Simplify run_on_startup handling for consistency Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- epicgamesfree/rootfs/etc/cont-init.d/99-run.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh b/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh index f4630f37c..98b21d15c 100755 --- a/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh +++ b/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh @@ -33,14 +33,12 @@ chmod -R 777 "$HOME" ###################### # Handle run_on_startup option -if bashio::config.has_value "run_on_startup"; then - if bashio::config.true "run_on_startup"; then - bashio::log.info "run_on_startup is enabled" - jq '.runOnStartup = true' "$CONFIG_JSON" > "${CONFIG_JSON}.tmp" && mv "${CONFIG_JSON}.tmp" "$CONFIG_JSON" - else - bashio::log.info "run_on_startup is disabled" - jq '.runOnStartup = false' "$CONFIG_JSON" > "${CONFIG_JSON}.tmp" && mv "${CONFIG_JSON}.tmp" "$CONFIG_JSON" - fi +if bashio::config.true "run_on_startup"; then + bashio::log.info "run_on_startup is enabled" + jq '.runOnStartup = true' "$CONFIG_JSON" > "${CONFIG_JSON}.tmp" && mv "${CONFIG_JSON}.tmp" "$CONFIG_JSON" +else + bashio::log.info "run_on_startup is disabled" + jq '.runOnStartup = false' "$CONFIG_JSON" > "${CONFIG_JSON}.tmp" && mv "${CONFIG_JSON}.tmp" "$CONFIG_JSON" fi # Handle disable_cron option