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