mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-21 14:59:14 +02:00
Make Jellyseerr obsolete and refer to Seerr instead
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
35
zzz_archived_jellyseerr/rootfs/etc/cont-init.d/90-run.sh
Executable file
35
zzz_archived_jellyseerr/rootfs/etc/cont-init.d/90-run.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
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"
|
||||
cp -rnT /app/config "$CONFIG_LOCATION"/
|
||||
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
|
||||
rmdir "$OLD_CONFIG_LOCATION"
|
||||
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
|
||||
TZ=$(bashio::config 'TZ')
|
||||
export TZ
|
||||
|
||||
yarn start
|
||||
Reference in New Issue
Block a user