3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
9a55232bba Simplify run_on_startup handling for consistency
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2025-12-04 14:45:38 +00:00
copilot-swe-agent[bot]
893e3ced2c Add disable_cron and run_on_startup options to Epic Games Free addon
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2025-12-04 14:44:31 +00:00
copilot-swe-agent[bot]
280f524c49 Initial plan 2025-12-04 14:38:01 +00:00
8 changed files with 35 additions and 30 deletions

View File

@@ -1,7 +1,4 @@
## debian-2025-12-04-1 (2025-12-04)
- Add an add-on option to disable the bundled cron service and honor it at startup
## debian-2025-11-25 (2025-11-25)
- Update to latest version from charlocharlie/epicgames-freegames

View File

@@ -35,7 +35,15 @@ This addon is based on the docker image https://hub.docker.com/r/charlocharlie/e
## Configuration
Addon options expose the `env_vars` field for passing extra environment variables and a `disable_cron` switch to stop the built-in cron service; all other application configuration is done via the JSON file.
Addon options expose the `env_vars` field for passing extra environment variables; all other configuration is done via the JSON file.
### Add-on Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `run_on_startup` | boolean | `true` | Run a claim cycle when the add-on starts |
| `disable_cron` | boolean | `false` | Disable the cron schedule (only run on startup) |
| `env_vars` | list | `[]` | Extra environment variables to pass to the container |
### Configuration Files
@@ -95,7 +103,6 @@ Create `/config/addons_config/epicgamesfree/config.json`:
| `logLevel` | string | Application log level |
| `webPortalConfig.baseUrl` | string | Base URL used by the included web portal |
| `notifiers` | array | Notification targets such as email, Discord, Telegram, Apprise, etc. |
| `disable_cron` | boolean | Disable the add-on's cron service if an external scheduler is used |
### Account Configuration

View File

@@ -75,6 +75,7 @@ map:
name: Epic Games Free
options:
env_vars: []
run_on_startup: true
disable_cron: false
ports:
3000/tcp: 3000
@@ -84,9 +85,10 @@ schema:
env_vars:
- name: match(^[A-Za-z0-9_]+$)
value: str?
run_on_startup: bool?
disable_cron: bool?
slug: epicgamesfree
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "debian-2025-12-04-1"
version: "debian-2025-11-25"
webui: "[PROTO:ssl]://[HOST]:[PORT:3000]"

View File

@@ -10,22 +10,6 @@ HOME="/config/addons_config/epicgamesfree"
CONFIG_JSON="$HOME/config.json"
LEGACY_YAML="$HOME/config.yaml"
if bashio::config.true 'disable_cron'; then
bashio::log.info "Disabling cron service as requested by configuration"
if bashio::command.exists s6-rc && s6-rc -a list | grep -q "^cron$"; then
s6-rc -d change cron || true
fi
if [ -d /etc/services.d/cron ]; then
rm -rf /etc/services.d/cron
fi
if bashio::command.exists service; then
service cron stop >/dev/null 2>&1 || true
fi
fi
if [ ! -f "$CONFIG_JSON" ]; then
if [ -f "$LEGACY_YAML" ]; then
bashio::log.warning "A legacy config.yaml was found. A default config.json will be created. Please migrate your settings to the new file format and restart the add-on"
@@ -44,6 +28,25 @@ fi
# Permissions
chmod -R 777 "$HOME"
######################
# APPLY ADDON CONFIG #
######################
# Handle run_on_startup option
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
if bashio::config.true "disable_cron"; then
bashio::log.info "Cron schedule is disabled - the addon will only run on startup"
jq 'del(.cronSchedule)' "$CONFIG_JSON" > "${CONFIG_JSON}.tmp" && mv "${CONFIG_JSON}.tmp" "$CONFIG_JSON"
fi
##############
# Launch App #
##############

View File

@@ -1,6 +1,3 @@
## 4.53.0 (04-12-2025)
- Development branch
- The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.

View File

@@ -1,6 +1,6 @@
{
"build_from": {
"aarch64": "lscr.io/linuxserver/ombi:arm64v8-development",
"amd64": "lscr.io/linuxserver/ombi:amd64-development"
"aarch64": "lscr.io/linuxserver/ombi:arm64v8-latest",
"amd64": "lscr.io/linuxserver/ombi:amd64-latest"
}
}

View File

@@ -86,5 +86,5 @@ schema:
slug: ombi
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/ombi
version: 4.53.0
version: 4.47.1
webui: "[PROTO:ssl]://[HOST]:[PORT:3579]"

View File

@@ -1,9 +1,8 @@
{
"github_beta": true,
"last_update": "11-01-2025",
"repository": "alexbelgium/hassio-addons",
"slug": "ombi",
"source": "github",
"upstream_repo": "linuxserver/docker-ombi",
"upstream_version": "4.53.0"
"upstream_version": "4.47.1"
}