Files
hassio-addons/jellyseerr/rootfs/etc/cont-init.d/90-run.sh
2023-05-04 13:14:53 +02:00

23 lines
528 B
Bash
Executable File

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Create files
CONFIG_LOCATION="/config/addons_config/jellyseer"
bashio::log.info "Config stored in $CONFIG_LOCATION"
mkdir -p "$CONFIG_LOCATION"
if [ -d /data/config ]; then rm -r /data/config; fi
cp -rnT /app/config "$CONFIG_LOCATION"
rm -r /app/config
cp -rn /app/* /data
cp -rn /app/.next /data
rm -r /app
ln -s "$CONFIG_LOCATION" /data/config
# Create files
JELLYFIN_TYPE=$(bashio::config 'TYPE')
export JELLYFIN_TYPE
TZ=$(bashio::config 'TZ')
export TZ
yarn start