fixed config location for jacket and for bashio fix

This commit is contained in:
Bruvv
2022-01-01 10:59:37 +01:00
parent bb12946786
commit d55f37705d
93 changed files with 104 additions and 111 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /emby ]; then
echo "Creating /emby"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ -d /config/filebrowser ]; then
echo "Moving to new location /config/addons_config/filebrowser"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
slug=flexget

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -22,8 +22,7 @@ FROM ${BUILD_FROM}
##################
# use /data instead of /config for hass.io environment
RUN sed -i "s|/config|/config/addons_config/Jackett|g" /etc/services.d/jackett/run \
&& sed -i "s|/config|/config/addons_config/Jackett|g" /etc/cont-init.d/30-config \
RUN sed -i "s|/config|/config/addons_config/Jackett|g" /etc/cont-init.d/30-config \
\
# Allow UID and GID setting
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
@@ -31,8 +30,7 @@ RUN sed -i "s|/config|/config/addons_config/Jackett|g" /etc/services.d/jackett/r
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
# Changes config directory
ENV XDG_DATA_HOME="/config/addons_config" \
XDG_CONFIG_HOME="/config/addons_config"
ENV XDG_CONFIG_HOME="/config/addons_config"
##################
# 3 Install apps #

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,10 +1,4 @@
#!/bin/bash
if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies"
mkdir -p /share/storage/movies
chown -R abc:abc /share/storage/movies
fi
#!/usr/bin/with-contenv bashio
if [ ! -d /share/downloads ]; then
echo "Creating /share/downloads"
@@ -18,6 +12,7 @@ if [ -d /config/Jackett ] && [ ! -d /config/addons_config/Jackett ]; then
chown -R abc:abc /config/addons_config/Jackett
mv /config/Jackett/* /config/addons_config/Jackett/
rm -r /config/Jackett
rm -r /config/jackett
fi
if [ ! -d /config/addons_config/Jackett ]; then

View File

@@ -26,7 +26,7 @@ if bashio::config.has_value 'networkdisks'; then
for disk in ${MOREDISKS//,/ }; do # Separate comma separated values
# Clean name of network share
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
disk=$(echo "$disk" | sed "s,/$,,") # Remove / at end of name
diskname=${disk//\\//} #replace \ with /
diskname=${diskname##*/} # Get only last part of the name
@@ -37,18 +37,18 @@ if bashio::config.has_value 'networkdisks'; then
fi
# Prepare mount point
mkdir -p /mnt/$diskname
chown -R root:root /mnt/$diskname
mkdir -p /mnt/"$diskname"
chown -R root:root /mnt/"$diskname"
#Tries to mount with default options
mount -t cifs -o rw,username=$CIFS_USERNAME,password=${CIFS_PASSWORD}$DOMAIN $disk /mnt/$diskname 2>ERRORCODE && MOUNTED=true || MOUNTED=false
mount -t cifs -o rw,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}""$DOMAIN" "$disk" /mnt/"$diskname" 2>ERRORCODE && MOUNTED=true || MOUNTED=false
# if Fail test different smb and sec versions
if [ $MOUNTED = false ]; then
for SMBVERS in ",vers=3" ",vers=1.0" ",vers=2.1" ",vers=3.0" ",nodfs" ",uid=0,gid=0,forceuid,forcegid" ",noforceuid,noforcegid" ",${DOMAIN:-WORKGROUP}"; do
mount -t cifs -o rw,file_mode=0777,dir_mode=0777,username=$CIFS_USERNAME,password=${CIFS_PASSWORD}$SMBVERS $disk /mnt/$diskname 2>/dev/null && MOUNTED=true && break || MOUNTED=false
mount -t cifs -o rw,file_mode=0777,dir_mode=0777,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}"$SMBVERS "$disk" /mnt/"$diskname" 2>/dev/null && MOUNTED=true && break || MOUNTED=false
for SECVERS in ",sec=ntlmi" ",sec=ntlmv2" ",sec=ntlmv2i" ",sec=ntlmssp" ",sec=ntlmsspi" ",sec=ntlm" ",sec=krb5i" ",sec=krb5" ",iocharset=utf8"; do
mount -t cifs -o rw,file_mode=0777,dir_mode=0777,username=$CIFS_USERNAME,password=${CIFS_PASSWORD}$SMBVERS$SECVERS $disk /mnt/$disk name 2>/dev/null && MOUNTED=true && break 2 && break || MOUNTED=false
mount -t cifs -o rw,file_mode=0777,dir_mode=0777,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}"$SMBVERS$SECVERS "$disk" /mnt/"$disk" name 2>/dev/null && MOUNTED=true && break 2 && break || MOUNTED=false
done
done
fi
@@ -56,7 +56,7 @@ if bashio::config.has_value 'networkdisks'; then
# Messages
if [ $MOUNTED = true ] && [ "mountpoint -q /mnt/$diskname" ]; then
#Test write permissions
touch /mnt/$diskname/testaze && rm /mnt/$diskname/testaze &&
touch /mnt/"$diskname"/testaze && rm /mnt/"$diskname"/testaze &&
bashio::log.info "... $disk successfully mounted to /mnt/$diskname with options $SMBVERS$SECVERS" ||
bashio::log.fatal "Disk is mounted, however unable to write in the shared disk. Please check UID/GID for permissions, and if the share is rw"
@@ -68,15 +68,15 @@ if bashio::config.has_value 'networkdisks'; then
# Provide debugging info
smbclient -V &>/dev/null || apt-get install smbclient || apk add --no-cache samba-client
#smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true
smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true
smbclient -L "$disk" -U "$CIFS_USERNAME"%"$CIFS_PASSWORD" || true
# Error code
bashio::log.fatal "Error read : $(<ERRORCODE)"
rm ERRORCODE
# clean folder
umount /mnt/$diskname 2>/dev/null || true
rmdir /mnt/$diskname || true
umount /mnt/"$diskname" 2>/dev/null || true
rmdir /mnt/"$diskname" || true
fi
done

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /jellyfin ]; then
echo "Creating /jellyfin"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /share/music ]; then
echo "Creating /share/music"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
slug=nzbget

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
slug=ombi

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /data/organizr ]; then
echo "Creating /data/organizr"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
slug=paperless

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Installing pikepdf..."
(

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
##################
# SYMLINK CONFIG #

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
##################
# SYMLINK CONFIG #

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ -e "/PORTFILE" ]; then
echo "Installing portainer..."
BUILD_UPSTREAM=$(</PORTFILE)

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ -d /config/prowlarr ]; then
echo "Moving to new location /config/addons_config/prowlarr"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
slug=ubooquity

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
echo "Starting..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# If dockerfile failed install manually
if [ -e "/ENVFILE" ]; then
echo "Executing script"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
# Color comments
#! Red

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/with-contenv bashio
########
# INIT #