mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 06:14:07 +02:00
New addon
https://github.com/alexbelgium/hassio-addons/issues/439#issuecomment-1533326052
This commit is contained in:
18
jellyseerr/rootfs/etc/cont-init.d/90-run.sh
Normal file
18
jellyseerr/rootfs/etc/cont-init.d/90-run.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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"
|
||||
cp -rnT /app/config "$CONFIG_LOCATION"
|
||||
cp -rnT /app /data
|
||||
rm -r /app
|
||||
rm -r /data/config
|
||||
ln -s "$CONFIG_LOCATION" /data/config
|
||||
|
||||
# Create files
|
||||
export JELLYFIN_TYPE=$(bashio::config 'TYPE')
|
||||
export TZ=$(bashio::config 'TZ')
|
||||
|
||||
yarn start
|
||||
Reference in New Issue
Block a user