Merge pull request #1538 from kool2zero/master

Update Config Location
This commit is contained in:
Alexandre
2024-08-20 21:03:00 +02:00
committed by GitHub
3 changed files with 21 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
## 1.9.2-2 (20-08-2024)
- Minor bugs fixed
## 1.9.2 (15-06-2024) ## 1.9.2 (15-06-2024)
- Update to latest version from Fallenbagel/jellyseerr (changelog : https://github.com/Fallenbagel/jellyseerr/releases) - Update to latest version from Fallenbagel/jellyseerr (changelog : https://github.com/Fallenbagel/jellyseerr/releases)

View File

@@ -91,6 +91,6 @@
"slug": "jellyseerr", "slug": "jellyseerr",
"udev": true, "udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/jellyseerr", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/jellyseerr",
"version": "1.9.2", "version": "1.9.2-2",
"webui": "[PROTO:ssl]://[HOST]:[PORT:5055]" "webui": "[PROTO:ssl]://[HOST]:[PORT:5055]"
} }

View File

@@ -3,7 +3,8 @@
set -e set -e
# Create files # Create files
CONFIG_LOCATION="/config/addons_config/jellyseer" OLD_CONFIG_LOCATION="/config/addons_config/jellyseer"
CONFIG_LOCATION="/config/addons_config/jellyseerr"
bashio::log.info "Config stored in $CONFIG_LOCATION" bashio::log.info "Config stored in $CONFIG_LOCATION"
mkdir -p "$CONFIG_LOCATION" mkdir -p "$CONFIG_LOCATION"
cp -rnT /app/config "$CONFIG_LOCATION"/ cp -rnT /app/config "$CONFIG_LOCATION"/
@@ -11,6 +12,21 @@ rm -r /app/config
ln -s "$CONFIG_LOCATION" /app/config ln -s "$CONFIG_LOCATION" /app/config
chmod -R 755 "$CONFIG_LOCATION" chmod -R 755 "$CONFIG_LOCATION"
#Move files that may be in misspelled directory
if [ -d "$OLD_CONFIG_LOCATION" ];
then
#Directory Exists
if [ -z "$( ls -A '$OLD_CONFIG_LOCATION' )" ];
then
#Empty
else
#Not Empty
bashio::log.info "Moving old configuration settings from $OLD_CONFIG_LOCATION to $CONFIG_LOCATION"
cp -rnT "$OLD_CONFIG_LOCATION" "$CONFIG_LOCATION"/
rm -r "$OLD_CONFIG_LOCATION"
fi
fi
# Create files # Create files
JELLYFIN_TYPE=$(bashio::config 'TYPE') JELLYFIN_TYPE=$(bashio::config 'TYPE')
export JELLYFIN_TYPE export JELLYFIN_TYPE