mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update configuration
Update configuration to fix a misspelling in the config folder name. Update config.json to increment version Update Change log.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user