Skip to content

Commit

Permalink
Repair readarr #1088 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium committed Nov 23, 2023
1 parent e664969 commit 8498e83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .templates/01-config_yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then
# Get config source
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
# Check CONFIGSOURCE ends with config.yaml
if [ "$(basename "$CONFIGSOURCE")" != "config.yaml" ]; then
bashio::log.red "Watch-out: your CONFIG_LOCATION should end by config.yaml, and instead it is $(basename "$CONFIGSOURCE")"
if [ "$(basename "$CONFIGSOURCE")" != "*.yaml" ]; then
# Remove trailing slash and add config.yaml
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
fi
# Check if config is located in an acceptable location
LOCATIONOK=""
Expand Down
2 changes: 2 additions & 0 deletions readarr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Fix : restore normal working

### 0.3.10.2287-6 (21-11-2023)
- Minor bugs fixed

Expand Down
4 changes: 2 additions & 2 deletions readarr/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
],
"name": "Readarr",
"options": {
"CONFIG_LOCATION": "/config/addons_config/readarr/config.yaml",
"CONFIG_LOCATION": "/config/addons_config/readarr",
"PGID": 0,
"PUID": 0
},
Expand Down Expand Up @@ -102,5 +102,5 @@
"slug": "readarr_nas",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/readarr",
"version": "0.3.10.2287-7"
"version": "0.3.10.2287-8"
}

0 comments on commit 8498e83

Please sign in to comment.