From 18149e519e1cb40f124cec5c36bbcfe3a224e59f Mon Sep 17 00:00:00 2001 From: Jim Geraci Date: Tue, 20 Aug 2024 14:10:35 -0400 Subject: [PATCH] Update configuration Update configuration to fix a misspelling in the config folder name. Update config.json to increment version Update Change log. --- jellyseerr/CHANGELOG.md | 3 +++ jellyseerr/config.json | 2 +- jellyseerr/rootfs/etc/cont-init.d/90-run.sh | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/jellyseerr/CHANGELOG.md b/jellyseerr/CHANGELOG.md index aefeeb29e..52a1043b3 100644 --- a/jellyseerr/CHANGELOG.md +++ b/jellyseerr/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.9.2-2 (20-08-2024) + +- Minor bugs fixed ## 1.9.2 (15-06-2024) - Update to latest version from Fallenbagel/jellyseerr (changelog : https://github.com/Fallenbagel/jellyseerr/releases) diff --git a/jellyseerr/config.json b/jellyseerr/config.json index d6d7e41de..be4057dff 100644 --- a/jellyseerr/config.json +++ b/jellyseerr/config.json @@ -91,6 +91,6 @@ "slug": "jellyseerr", "udev": true, "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]" } diff --git a/jellyseerr/rootfs/etc/cont-init.d/90-run.sh b/jellyseerr/rootfs/etc/cont-init.d/90-run.sh index b59f898b1..21ca1b0b5 100755 --- a/jellyseerr/rootfs/etc/cont-init.d/90-run.sh +++ b/jellyseerr/rootfs/etc/cont-init.d/90-run.sh @@ -3,6 +3,7 @@ set -e # Create files +OLD_CONFIG_LOCATION="/config/addons_config/jellyseer" CONFIG_LOCATION="/config/addons_config/jellyseerr" bashio::log.info "Config stored in $CONFIG_LOCATION" mkdir -p "$CONFIG_LOCATION" @@ -11,6 +12,21 @@ rm -r /app/config ln -s "$CONFIG_LOCATION" /app/config 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 JELLYFIN_TYPE=$(bashio::config 'TYPE') export JELLYFIN_TYPE