Suppress messages

This commit is contained in:
Alexandre
2021-11-22 13:12:10 +01:00
parent 25db1a5b5d
commit 28eca160a4
9 changed files with 278 additions and 275 deletions

View File

@@ -1,31 +1,31 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get clean
apt-get update
apt-get install -y --no-install-recommends \
jq \
cifs-utils \
keyutils \
samba \
smbclient
apt-get clean
################ ###################
# Install apps # # Install bashio #
################ ##################
apt-get clean BASHIO_VERSION=0.13.1
apt-get update mkdir -p /tmp/bashio
apt-get install -y --no-install-recommends \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
jq \ tar -xzf - --strip 1 -C /tmp/bashio
cifs-utils \ mv /tmp/bashio/lib /usr/lib/bashio
keyutils \ ln -s /usr/lib/bashio/bashio /usr/bin/bashio
samba \ rm -rf /tmp/bashio
smbclient ) >/dev/null
apt-get clean
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -1,32 +1,32 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
nginx &&
apt-get clean
################ ###################
# Install apps # # Install bashio #
################ ##################
apt-get clean \ BASHIO_VERSION=0.13.1
&& apt-get update \ mkdir -p /tmp/bashio
&& apt-get install -y --no-install-recommends \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
jq \ tar -xzf - --strip 1 -C /tmp/bashio
cifs-utils \ mv /tmp/bashio/lib /usr/lib/bashio
keyutils \ ln -s /usr/lib/bashio/bashio /usr/bin/bashio
samba \ rm -rf /tmp/bashio
smbclient \ ) >/dev/null
nginx \
&& apt-get clean
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -1,37 +1,38 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apk add --no-cache \
curl \
jq \
bash \
cifs-utils \
keyutils \
samba \
samba-client \
bind-tools \
nginx
################ ###################
# Install apps # # Install bashio #
################ ##################
apk add --no-cache \ BASHIO_VERSION=0.13.1
curl \ mkdir -p /tmp/bashio
jq \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
bash \ tar -xzf - --strip 1 -C /tmp/bashio
cifs-utils \ mv /tmp/bashio/lib /usr/lib/bashio
keyutils \ ln -s /usr/lib/bashio/bashio /usr/bin/bashio
samba \ rm -rf /tmp/bashio
samba-client \
bind-tools \
nginx
################### ########################################
# Install bashio # # Correct upstream image folders links #
################## ########################################
BASHIO_VERSION=0.13.1 mkdir -p -m 777 /config/filebrowser || true
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
########################################
# Correct upstream image folders links #
########################################
mkdir -p -m 777 /config/filebrowser || true
) >/dev/null
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -1,28 +1,28 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
curl \
yamllint
################ ###################
# Install apps # # Install bashio #
################ ##################
apt-get clean && BASHIO_VERSION=0.13.1
apt-get update && mkdir -p /tmp/bashio
apt-get install -y --no-install-recommends \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
jq \ tar -xzf - --strip 1 -C /tmp/bashio
curl \ mv /tmp/bashio/lib /usr/lib/bashio
yamllint ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
################### ) >/dev/null
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -2,36 +2,36 @@
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get update
apt-get install -y --no-install-recommends \
jq \
samba \
smbclient \
nginx
apt-get -y upgrade cifs-utils
################ # Allow UID and GID setting
# Install apps # sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser
################ sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser
apt-get update sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
apt-get install -y --no-install-recommends \ sed -i "s|/config|/config/jellyfin|g" /etc/services.d/jellyfin/run
jq \ sed -i "s|/config|/config/jellyfin|g" /etc/cont-init.d/10-adduser
samba \ sed -i "s|/config|/config/jellyfin|g" /etc/cont-init.d/30-config
smbclient \
nginx
apt-get -y upgrade cifs-utils
# Allow UID and GID setting
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser
sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser
sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
sed -i "s|/config|/config/jellyfin|g" /etc/services.d/jellyfin/run
sed -i "s|/config|/config/jellyfin|g" /etc/cont-init.d/10-adduser
sed -i "s|/config|/config/jellyfin|g" /etc/cont-init.d/30-config
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -1,41 +1,41 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
################
# Install apps #
################
apk update &&
apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba-client \
samba || \
( (
apt-get clean && \ ################
apt-get update && \ # Install apps #
apt-get install -y --no-install-recommends \ ################
jq \ apk update &&
curl \ apk add --no-cache \
cifs-utils \ jq \
keyutils \ curl \
smbclient \ cifs-utils \
samba keyutils \
) samba-client \
samba ||
################### (
# Install bashio # apt-get clean &&
################## apt-get update &&
BASHIO_VERSION=0.13.1 apt-get install -y --no-install-recommends \
mkdir -p /tmp/bashio jq \
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | curl \
tar -xzf - --strip 1 -C /tmp/bashio cifs-utils \
mv /tmp/bashio/lib /usr/lib/bashio keyutils \
ln -s /usr/lib/bashio/bashio /usr/bin/bashio smbclient \
rm -rf /tmp/bashio samba
)
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -1,39 +1,39 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
keyutils \
smbclient \
samba ||
apk update &&
apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba-client \
samba
################ ###################
# Install apps # # Install bashio #
################ ##################
apt-get clean && BASHIO_VERSION=0.13.1
apt-get update && mkdir -p /tmp/bashio
apt-get install -y --no-install-recommends \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
jq \ tar -xzf - --strip 1 -C /tmp/bashio
curl \ mv /tmp/bashio/lib /usr/lib/bashio
cifs-utils \ ln -s /usr/lib/bashio/bashio /usr/bin/bashio
keyutils \ rm -rf /tmp/bashio
smbclient \ ) >/dev/null
samba ||
apk update &&
apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba-client \
samba
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
echo "Bashio installed" echo "Bashio installed"
fi fi

View File

@@ -1,62 +1,64 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get clean \
apt-get update \
apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
nginx \
coreutils \
openvpn
apt-get clean
################ ##################
# Install apps # # Install tempio #
################ ##################
apt-get clean \ curl -L -f -s -o /usr/bin/tempio \
apt-get update \ "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \
apt-get install -y \ chmod a+x /usr/bin/tempio
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
nginx \
coreutils \
openvpn
apt-get clean
################## ##################
# Install tempio # # Install bashio #
################## ##################
curl -L -f -s -o /usr/bin/tempio \ mkdir -p /tmp/bashio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \ curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
chmod a+x /usr/bin/tempio tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
################## ########################################
# Install bashio # # Correct upstream image folders links #
################## ########################################
mkdir -p /tmp/bashio \ # Allow UID and GID setting
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser
tar -xzf - --strip 1 -C /tmp/bashio sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser
mv /tmp/bashio/lib /usr/lib/bashio sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
######################################## # Correct permissions
# Correct upstream image folders links # sed -i 's=/config=/config/qBittorrent || true=g' /etc/cont-init.d/10-adduser
######################################## sed -i 's= /config=/config/qBittorrent || true=g' /etc/cont-init.d/30-config
# Allow UID and GID setting
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser
sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser
sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
# Correct permissions # Set download folder to /share
sed -i 's=/config=/config/qBittorrent || true=g' /etc/cont-init.d/10-adduser sed -i 's|/downloads/|/share/qBittorrent/|g' /defaults/qBittorrent.conf
sed -i 's= /config=/config/qBittorrent || true=g' /etc/cont-init.d/30-config
# Set download folder to /share # Remove fixed folders, allows connection to webUI
sed -i 's|/downloads/|/share/qBittorrent/|g' /defaults/qBittorrent.conf sed '11,13d' /defaults/qBittorrent.conf \
echo 'WebUI\HostHeaderValidation=false' \
# Remove fixed folders, allows connection to webUI echo 'WebUI\LocalHostAuth=false' >>/defaults/qBittorrent.conf \
sed '11,13d' /defaults/qBittorrent.conf \ >>/defaults/qBittorrent.conf
echo 'WebUI\HostHeaderValidation=false' \
echo 'WebUI\LocalHostAuth=false' >>/defaults/qBittorrent.conf \
>>/defaults/qBittorrent.conf
) >/dev/null
echo "Bashio installed"
fi fi

View File

@@ -1,34 +1,34 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y \
jq \
curl &&
apt-get clean
################ ################
# Install apps # # Modify image #
################ ################
apt-get clean && # Change data location
apt-get update && grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g'
apt-get install -y \
jq \
curl &&
apt-get clean
################
# Modify image #
################
# Change data location
grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g'
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
###################
# Install bashio #
##################
BASHIO_VERSION=0.13.1
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
echo "Bashio installed" echo "Bashio installed"
fi fi