mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-05 07:14:08 +02:00
test
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
bashio::log.info "Updating folder structure and permission"
|
||||
|
||||
echo "Internal location : /emby"
|
||||
mkdir -p /emby
|
||||
chown -R "$PUID:$PGID" /emby
|
||||
|
||||
echo "Files location : /share/storage/tv"
|
||||
mkdir -p /share/storage/tv
|
||||
chown -R "$PUID:$PGID" /share/storage/tv
|
||||
|
||||
echo "Files location : /share/storage/movies"
|
||||
mkdir -p /share/storage/movies
|
||||
chown -R "$PUID:$PGID" /share/storage/movies
|
||||
|
||||
echo "Data location : /share/emby"
|
||||
mkdir -p /share/emby
|
||||
chown -R "$PUID:$PGID" /share/emby
|
||||
|
||||
echo "Config location : /config/addons_config/emby"
|
||||
mkdir -p /config/addons_config/emby
|
||||
chown -R "$PUID:$PGID" /config/addons_config/emby
|
||||
|
||||
# links
|
||||
|
||||
if [ ! -d /emby/cache ]; then
|
||||
echo "... link for /emby/cache"
|
||||
mkdir -p /share/emby/cache
|
||||
chown -R "$PUID:$PGID" /share/emby/cache
|
||||
ln -s /share/emby/cache /emby/cache
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/config ]; then
|
||||
echo "Creating link for /emby/config"
|
||||
mkdir -p /config/emby
|
||||
chown -R "$PUID:$PGID" /config/emby
|
||||
ln -s /config/emby /emby/config
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/data ]; then
|
||||
echo "Creating link for /emby/data"
|
||||
mkdir -p /share/emby/data
|
||||
chown -R "$PUID:$PGID" /share/emby/data
|
||||
ln -s /share/emby/data /emby/data
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/logs ]; then
|
||||
echo "Creating link for /emby/logs"
|
||||
mkdir -p /share/emby/logs
|
||||
chown -R "$PUID:$PGID" /share/emby/logs
|
||||
ln -s /share/emby/logs /emby/logs
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/metadata ]; then
|
||||
echo "Creating link for /emby/metadata"
|
||||
mkdir -p /share/emby/metadata
|
||||
chown -R "$PUID:$PGID" /share/emby/metadata
|
||||
ln -s /share/emby/metadata /emby/metadata
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/plugins ]; then
|
||||
echo "Creating link for /emby/plugins"
|
||||
mkdir -p /share/emby/plugins
|
||||
chown -R "$PUID:$PGID" /share/emby/plugins
|
||||
ln -s /share/emby/plugins /emby/plugins
|
||||
fi
|
||||
|
||||
if [ ! -d /emby/root ]; then
|
||||
echo "Creating link for /emby/root"
|
||||
mkdir -p /share/emby/root
|
||||
chown -R "$PUID:$PGID" /share/emby/root
|
||||
ln -s /share/emby/root /emby/root
|
||||
fi
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
#################
|
||||
# NGINX SETTING #
|
||||
#################
|
||||
|
||||
declare ingress_interface
|
||||
declare ingress_port
|
||||
|
||||
echo "Adapting for ingress"
|
||||
ingress_port=$(bashio::addon.ingress_port)
|
||||
ingress_interface=$(bashio::addon.ip_address)
|
||||
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
||||
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
||||
|
||||
# Allow uppercase url
|
||||
echo "Allowing case sensitive url"
|
||||
grep -rl toLowerCase /app/emby/system/dashboard-ui/app.js | xargs sed -i 's/toLowerCase()/toString()/g'
|
||||
grep -rl toLowerCase /app/emby/system/dashboard-ui/network | xargs sed -i 's/toLowerCase()/toString()/g'
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
###############
|
||||
# SILENT MODE #
|
||||
###############
|
||||
|
||||
if bashio::config.true 'silent'; then
|
||||
APPEND=' >/dev/null'
|
||||
sed -i '$s|$|'"$APPEND"'|' /etc/s6-overlay/s6-rc.d/svc-emby/run
|
||||
bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.'
|
||||
fi
|
||||
Reference in New Issue
Block a user