This commit is contained in:
Alexandre
2022-01-17 13:18:05 +01:00
parent 0b0b471cbe
commit a22ce94a46
67 changed files with 263 additions and 207 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Displays a simple add-on banner on startup # Displays a simple add-on banner on startup
# ============================================================================== # ==============================================================================

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################################### ###################################
# Export all addon options as env # # Export all addon options as env #
@@ -16,7 +17,7 @@ for KEYS in ${arr[@]}; do
line="${KEYS}=${VALUE//[\"\']/}" line="${KEYS}=${VALUE//[\"\']/}"
# Use locally # Use locally
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
# Export the variable to run scripts # Export the variable to run scripts
line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true" line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"
[ -f /etc/services.d/*/*run* ] && sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null [ -f /etc/services.d/*/*run* ] && sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null
[ -f /etc/cont-init.d/*run* ] && sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null [ -f /etc/cont-init.d/*run* ] && sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
JSONTOCHECK='/config/transmission/settings.json' JSONTOCHECK='/config/transmission/settings.json'
JSONSOURCE='/defaults/settings.json' JSONSOURCE='/defaults/settings.json'

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################## ##################
# INITIALIZATION # # INITIALIZATION #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
############### ###############
# DNS SETTING # # DNS SETTING #
@@ -7,22 +8,21 @@
# Avoid usage of local dns such as adguard home or pihole\n" # Avoid usage of local dns such as adguard home or pihole\n"
if bashio::config.has_value 'DNS_server'; then if bashio::config.has_value 'DNS_server'; then
# Define variables # Define variables
DNSSERVER=$(bashio::config 'DNS_server') DNSSERVER=$(bashio::config 'DNS_server')
DNS="" DNS=""
DNSLIST="" DNSLIST=""
# Get DNS servers # Get DNS servers
for server in ${DNSSERVER//,/ } # Separate comma separated values for server in ${DNSSERVER//,/ }; do # Separate comma separated values
do DNS="${DNS}nameserver $server\n"
DNS="${DNS}nameserver $server\n" DNSLIST="$server $DNSLIST"
DNSLIST="$server $DNSLIST" done
done
# Write resolv.conf # Write resolv.conf
printf "${DNS}" > /etc/resolv.conf printf "${DNS}" >/etc/resolv.conf
chmod 644 /etc/resolv.conf chmod 644 /etc/resolv.conf
bashio::log.info "DNS SERVERS set to $DNSLIST" bashio::log.info "DNS SERVERS set to $DNSLIST"
else else
bashio::log.info "DNS Servers option empty. Using default router (or HA) dns servers." bashio::log.info "DNS Servers option empty. Using default router (or HA) dns servers."
fi fi

View File

@@ -1,12 +1,13 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
############### ###############
# SILENT MODE # # SILENT MODE #
############### ###############
if bashio::config.true 'silent'; then if bashio::config.true 'silent'; then
APPEND=' > /dev/null' APPEND=' > /dev/null'
[ -f /etc/services.d/*/run ] && sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run [ -f /etc/services.d/*/run ] && sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run
[ -f /etc/cont-init.d/*/*run* ] && sed -i '$s|$|'"$APPEND"'|' /etc/cont-init.d/*/*run* [ -f /etc/cont-init.d/*/*run* ] && sed -i '$s|$|'"$APPEND"'|' /etc/cont-init.d/*/*run*
bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.' bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.'
fi fi

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
######################### #########################
# MOUNT SMB SHARES v1.6 # # MOUNT SMB SHARES v1.6 #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
########## ##########
# UPDATE # # UPDATE #
@@ -65,22 +66,22 @@ for addons in $(bashio::config "addon|keys"); do
DOCKERHUB_REPO=$(echo "${UPSTREAM%%/*}") DOCKERHUB_REPO=$(echo "${UPSTREAM%%/*}")
DOCKERHUB_IMAGE=$(echo $UPSTREAM | cut -d "/" -f2) DOCKERHUB_IMAGE=$(echo $UPSTREAM | cut -d "/" -f2)
LASTVERSION=$( LASTVERSION=$(
curl -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" | \ curl -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" |
jq '.results | .[] | .name' -r | \ jq '.results | .[] | .name' -r |
sed -e '/.*latest.*/d' | \ sed -e '/.*latest.*/d' |
sed -e '/.*dev.*/d' | \ sed -e '/.*dev.*/d' |
sort -V | \ sort -V |
tail -n 1 tail -n 1
)
[ ${BETA} = true ] && \
LASTVERSION=$(
curl -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" | \
jq '.results | .[] | .name' -r | \
sed -e '/.*latest.*/d' | \
sed -e '/.*dev.*/!d' | \
sort -V | \
tail -n 1
) )
[ ${BETA} = true ] &&
LASTVERSION=$(
curl -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" |
jq '.results | .[] | .name' -r |
sed -e '/.*latest.*/d' |
sed -e '/.*dev.*/!d' |
sort -V |
tail -n 1
)
else else
# Use github as upstream # Use github as upstream

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Home Assistant Community Add-on: Bitwarden # Home Assistant Community Add-on: Bitwarden
# This file configures nginx # This file configures nginx

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Home Assistant Community Add-on: Bitwarden # Home Assistant Community Add-on: Bitwarden
# Runs the Vaultwarden server # Runs the Vaultwarden server
@@ -20,24 +21,24 @@ export ROCKET_SECRET_KEY="${secret_key}"
# Find the matching log level # Find the matching log level
if bashio::config.has_value 'log_level'; then if bashio::config.has_value 'log_level'; then
case "$(bashio::string.lower "$(bashio::config 'log_level')")" in case "$(bashio::string.lower "$(bashio::config 'log_level')")" in
all|trace) all | trace)
log_level="trace" log_level="trace"
;; ;;
debug) debug)
log_level="debug" log_level="debug"
;; ;;
info|notice) info | notice)
log_level="info" log_level="info"
;; ;;
warning) warning)
log_level="warn" log_level="warn"
;; ;;
error|fatal) error | fatal)
log_level="error" log_level="error"
;; ;;
off) off)
log_level="off" log_level="off"
;; ;;
esac esac
export LOG_LEVEL="${log_level}" export LOG_LEVEL="${log_level}"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Home Assistant Community Add-on: Bitwarden # Home Assistant Community Add-on: Bitwarden
# Runs the Nginx daemon # Runs the Nginx daemon

View File

@@ -1,11 +1,12 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
############### ###############
# SILENT MODE # # SILENT MODE #
############### ###############
if bashio::config.true 'silent'; then if bashio::config.true 'silent'; then
APPEND=' > /dev/null' APPEND=' > /dev/null'
sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run
bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.' bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.'
fi fi

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
##################### #####################
# Autodiscover mqtt # # Autodiscover mqtt #

View File

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

View File

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

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
##################### #####################
# Autodiscover mqtt # # Autodiscover mqtt #

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k printf "$(bashio::config $k)" >/var/run/s6/container_environment/$k
done done

View File

@@ -1,9 +1,9 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
echo "Updating folders..." echo "Updating folders..."
for FOLDERS in "/share/grav" "/app/grav-admin/backup" for FOLDERS in "/share/grav" "/app/grav-admin/backup"; do
do
echo "... $FOLDERS" echo "... $FOLDERS"
mkdir -p $FOLDERS mkdir -p $FOLDERS
chown -R abc:abc $FOLDERS chown -R abc:abc $FOLDERS

View File

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

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
ocpath="${NEXTCLOUD_PATH}" ocpath="${NEXTCLOUD_PATH}"
htuser='abc' htuser='abc'
@@ -44,13 +45,11 @@ chown -R ${htuser}:${htgroup} /ssl/nextcloud/keys || true
chmod +x ${ocpath}/occ chmod +x ${ocpath}/occ
printf "chmod/chown .htaccess\n" printf "chmod/chown .htaccess\n"
if [ -f ${ocpath}/.htaccess ] if [ -f ${ocpath}/.htaccess ]; then
then
chmod 0644 ${ocpath}/.htaccess chmod 0644 ${ocpath}/.htaccess
chown ${rootuser}:${htgroup} ${ocpath}/.htaccess chown ${rootuser}:${htgroup} ${ocpath}/.htaccess
fi fi
if [ -f ${ocpath}/data/.htaccess ] if [ -f ${ocpath}/data/.htaccess ]; then
then
chmod 0644 ${ocpath}/data/.htaccess chmod 0644 ${ocpath}/data/.htaccess
chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess
fi fi

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
PUID=$(bashio::config "PUID") PUID=$(bashio::config "PUID")
PGID=$(bashio::config "PGID") PGID=$(bashio::config "PGID")

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
if bashio::config.true 'use_own_certs'; then if bashio::config.true 'use_own_certs'; then
@@ -26,7 +27,7 @@ echo "... adding ssl certs in files"
#Sets certificates #Sets certificates
for NGINXFILE in "/defaults/default" "/config/nginx/site-confs/default" "/data/config/nginx/site-confs/default"; do for NGINXFILE in "/defaults/default" "/config/nginx/site-confs/default" "/data/config/nginx/site-confs/default"; do
if [ -f $NGINXFILE ]; then if [ -f $NGINXFILE ]; then
LINE=$(sed -n "/ssl_certificate /=" $NGINXFILE) LINE=$(sed -n "/ssl_certificate /=" $NGINXFILE)
if [ ! -z $LINE ]; then if [ ! -z $LINE ]; then
sed -i "/ssl_certificate/ d" $NGINXFILE sed -i "/ssl_certificate/ d" $NGINXFILE
sed -i "$LINE i ssl_certificate_key /ssl/$KEYFILE;" $NGINXFILE sed -i "$LINE i ssl_certificate_key /ssl/$KEYFILE;" $NGINXFILE

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
#create folders #create folders
datadirectory=$(bashio::config 'data_directory') datadirectory=$(bashio::config 'data_directory')
@@ -6,16 +7,16 @@ mkdir -p \
$datadirectory \ $datadirectory \
/data/config/nextcloud/config \ /data/config/nextcloud/config \
/data/config/nextcloud/data \ /data/config/nextcloud/data \
/data/config/www/nextcloud/config /data/config/www/nextcloud/config
#permissions #permissions
chown abc:abc \ chown abc:abc \
$datadirectory \ $datadirectory \
/data/config/nextcloud/config \ /data/config/nextcloud/config \
/data/config/nextcloud/data \ /data/config/nextcloud/data \
/data/config/www/nextcloud/config /data/config/www/nextcloud/config
chown -R abc:abc \ chown -R abc:abc \
/var/lib/nginx /var/lib/nginx
rm -r /data/config/www/nextcloud/assets &>/dev/null rm -r /data/config/www/nextcloud/assets &>/dev/null

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Change data directory # Change data directory
datadirectory=$(bashio::config 'data_directory') datadirectory=$(bashio::config 'data_directory')
@@ -6,7 +7,7 @@ bashio::log.info "Setting data diretory: ${datadirectory}"
sed -i "s|%%datadirectory%%|$datadirectory|g" /defaults/config.php sed -i "s|%%datadirectory%%|$datadirectory|g" /defaults/config.php
# copy config # copy config
[[ ! -f /data/config/www/nextcloud/config/config.php ]] && \ [[ ! -f /data/config/www/nextcloud/config/config.php ]] &&
cp /defaults/config.php /data/config/www/nextcloud/config/config.php cp /defaults/config.php /data/config/www/nextcloud/config/config.php
# permissions # permissions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found" LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
if bashio::services.available 'mysql'; then if bashio::services.available 'mysql'; then
bashio::log.warning "MariaDB addon was found! It can't be configured automatically, but you can configure it manually using those values in the initial set-up :" bashio::log.warning "MariaDB addon was found! It can't be configured automatically, but you can configure it manually using those values in the initial set-up :"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found" LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
@@ -27,14 +28,14 @@ if bashio::config.has_value 'OCR'; then
if bashio::config.has_value 'OCRLANG'; then if bashio::config.has_value 'OCRLANG'; then
OCRLANG=$(bashio::config 'OCRLANG') OCRLANG=$(bashio::config 'OCRLANG')
for LANG in $(echo "$OCRLANG" | tr "," " "); do for LANG in $(echo "$OCRLANG" | tr "," " "); do
if [ $LANG != "eng" ]; then if [ $LANG != "eng" ]; then
apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community
fi fi
bashio::log.info "OCR Language installed : $LANG" || bashio::log.fatal "Couldn't install OCR lang $LANG. Please check its format is conform" bashio::log.info "OCR Language installed : $LANG" || bashio::log.fatal "Couldn't install OCR lang $LANG. Please check its format is conform"
# Downloading trainer data # Downloading trainer data
cd /usr/share/tessdata cd /usr/share/tessdata
rm -r $LANG.traineddata &>/dev/null || true rm -r $LANG.traineddata &>/dev/null || true
wget https://github.com/tesseract-ocr/tessdata/raw/main/$LANG.traineddata &>/dev/null wget https://github.com/tesseract-ocr/tessdata/raw/main/$LANG.traineddata &>/dev/null
done done
fi fi
elif $(bashio::config 'OCR') = false; then elif $(bashio::config 'OCR') = false; then

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found" LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
@@ -20,15 +21,15 @@ if bashio::config.has_value 'trusted_domains'; then
bashio::log.info "Currently set trusted domains :" bashio::log.info "Currently set trusted domains :"
$LAUNCHER config:system:get trusted_domains || bashio::log.info "No trusted domain set yet. The first one will be set when doing initial configuration" $LAUNCHER config:system:get trusted_domains || bashio::log.info "No trusted domain set yet. The first one will be set when doing initial configuration"
bashio::log.info "Trusted domains set in the configuration. Refreshing domains." && \ bashio::log.info "Trusted domains set in the configuration. Refreshing domains." &&
################################### ###################################
# Remove previous trusted domains # # Remove previous trusted domains #
################################### ###################################
bashio::log.info "... removing previously added trusted domain (except for first one created)" bashio::log.info "... removing previously added trusted domain (except for first one created)"
i=2 i=2
until [ $i -gt 5 ]; do until [ $i -gt 5 ]; do
$LAUNCHER config:system:delete trusted_domains $i && \ $LAUNCHER config:system:delete trusted_domains $i &&
((i = i + 1)) || exit ((i = i + 1)) || exit
done done
########################### ###########################

View File

@@ -1,17 +1,17 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
slug=nzbget slug=nzbget
if [ ! -d /config/addons_config/$slug ]; then if [ ! -d /config/addons_config/$slug ]; then
if [ -d /config/$slug ]; then if [ -d /config/$slug ]; then
echo "Moving to new location /config/addons_config/$slug" echo "Moving to new location /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug
chmod 777 /config/addons_config/$slug chmod 777 /config/addons_config/$slug
mv /config/$slug/* /config/addons_config/$slug/ mv /config/$slug/* /config/addons_config/$slug/
rm -r /config/$slug rm -r /config/$slug
fi fi
echo "Creating /config/addons_config/$slug" echo "Creating /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug

View File

@@ -1,17 +1,17 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
slug=ombi slug=ombi
if [ ! -d /config/addons_config/$slug ]; then if [ ! -d /config/addons_config/$slug ]; then
if [ -d /config/$slug ]; then if [ -d /config/$slug ]; then
echo "Moving to new location /config/addons_config/$slug" echo "Moving to new location /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug
chmod 777 /config/addons_config/$slug chmod 777 /config/addons_config/$slug
mv /config/$slug/* /config/addons_config/$slug/ mv /config/$slug/* /config/addons_config/$slug/
rm -r /config/$slug rm -r /config/$slug
fi fi
echo "Creating /config/addons_config/$slug" echo "Creating /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug

View File

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

View File

@@ -1,17 +1,17 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
slug=paperless slug=paperless
if [ ! -d /config/addons_config/$slug ]; then if [ ! -d /config/addons_config/$slug ]; then
if [ -d /config/$slug ]; then if [ -d /config/$slug ]; then
echo "Moving to new location /config/addons_config/$slug" echo "Moving to new location /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug
chmod 777 /config/addons_config/$slug chmod 777 /config/addons_config/$slug
mv /config/$slug/* /config/addons_config/$slug/ mv /config/$slug/* /config/addons_config/$slug/
rm -r /config/$slug rm -r /config/$slug
fi fi
echo "Creating /config/addons_config/$slug" echo "Creating /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug

View File

@@ -1,13 +1,14 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
echo "Installing pikepdf..." echo "Installing pikepdf..."
( (
export DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND="noninteractive"
export TERM="xterm-256color" export TERM="xterm-256color"
apt-get update apt-get update
apt-get install -yq libxml2-dev libxslt-dev python-dev apt-get install -yq libxml2-dev libxslt-dev python-dev
apt-get install -yq libjpeg-dev zlib1g-dev apt-get install -yq libjpeg-dev zlib1g-dev
apt-get install -yq python3-dev build-essential apt-get install -yq python3-dev build-essential
pip install pikepdf --force-reinstall pip install pikepdf --force-reinstall
) >/dev/null ) >/dev/null
echo "... success!" echo "... success!"

View File

@@ -1,11 +1,12 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
OCRLANG=$(bashio::config 'OCRLANG') OCRLANG=$(bashio::config 'OCRLANG')
if [ -n "$OCRLANG" ]; then if [ -n "$OCRLANG" ]; then
apt-get update &>/dev/null apt-get update &>/dev/null
echo "OCRLANG variable is set, processing the language packages" echo "OCRLANG variable is set, processing the language packages"
for i in ${OCRLANG//,/ }; do for i in ${OCRLANG//,/ }; do
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then if apt-cache show tesseract-ocr-"${i}" >/dev/null 2>&1; then
apt-get install -yq tesseract-ocr-"${i}" apt-get install -yq tesseract-ocr-"${i}"
bashio::log.info "OCR Language installed : $i" || bashio::log.fatal "Couldn't install OCR lang $i. Please check its format is conform" bashio::log.info "OCR Language installed : $i" || bashio::log.fatal "Couldn't install OCR lang $i. Please check its format is conform"
else else

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Allow OCR setting # Allow OCR setting
OCRLANG="$(bashio::config "ocrlang")" OCRLANG="$(bashio::config "ocrlang")"

View File

@@ -1,24 +1,25 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################## ##################
# SELECT FOLDERS # # SELECT FOLDERS #
################## ##################
#Set media dir #Set media dir
MEDIADIR='"'$(bashio::config 'storage_dir')'"' MEDIADIR='"'$(bashio::config 'storage_dir')'"'
#clean data #clean data
sed -i '/MEDIA_DIR/d' /data/config/papermerge.conf.py sed -i '/MEDIA_DIR/d' /data/config/papermerge.conf.py
#add data #add data
sed -i "2 i\MEDIA_DIR = $MEDIADIR" /data/config/papermerge.conf.py sed -i "2 i\MEDIA_DIR = $MEDIADIR" /data/config/papermerge.conf.py
bashio::log.info "Storage dir set to $MEDIADIR" bashio::log.info "Storage dir set to $MEDIADIR"
#Set import dir #Set import dir
IMPORTDIR='"'$(bashio::config 'import_dir')'"' IMPORTDIR='"'$(bashio::config 'import_dir')'"'
#clean data #clean data
sed -i '/IMPORTER_DIR/d' /data/config/papermerge.conf.py || true sed -i '/IMPORTER_DIR/d' /data/config/papermerge.conf.py || true
#add data #add data
sed -i "2 i\IMPORTER_DIR = $MEDIADIR" /data/config/papermerge.conf.py sed -i "2 i\IMPORTER_DIR = $MEDIADIR" /data/config/papermerge.conf.py
bashio::log.info "Import dir set to $IMPORTDIR" bashio::log.info "Import dir set to $IMPORTDIR"
################## ##################
# CREATE FOLDERS # # CREATE FOLDERS #
@@ -30,14 +31,12 @@ if [ ! -d /config ]; then
fi fi
chown -R abc:abc /config chown -R abc:abc /config
if [ ! -d $MEDIADIR ]; then if [ ! -d $MEDIADIR ]; then
echo "Creating $MEDIADIR" echo "Creating $MEDIADIR"
mkdir -p $MEDIADIR mkdir -p $MEDIADIR
fi fi
chown -R abc:abc $MEDIADIR chown -R abc:abc $MEDIADIR
if [ ! -d $IMPORTDIR ]; then if [ ! -d $IMPORTDIR ]; then
echo "Creating $IMPORTDIR" echo "Creating $IMPORTDIR"
mkdir -p $IMPORTDIR mkdir -p $IMPORTDIR

View File

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

View File

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

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
if [ -e "/PORTFILE" ]; then if [ -e "/PORTFILE" ]; then
echo "Installing portainer..." echo "Installing portainer..."
BUILD_UPSTREAM=$(</PORTFILE) BUILD_UPSTREAM=$(</PORTFILE)
@@ -16,7 +17,7 @@ if [ -e "/PORTFILE" ]; then
if [[ "${BUILD_ARCH}" == *x86* ]]; then ARCH="amd64"; fi if [[ "${BUILD_ARCH}" == *x86* ]]; then ARCH="amd64"; fi
curl -L -s \ curl -L -s \
"https://github.com/portainer/portainer/releases/download/${BUILD_UPSTREAM}/portainer-${BUILD_UPSTREAM}-linux-${ARCH}.tar.gz" \ "https://github.com/portainer/portainer/releases/download/${BUILD_UPSTREAM}/portainer-${BUILD_UPSTREAM}-linux-${ARCH}.tar.gz" |
| tar zxvf - -C /opt/ tar zxvf - -C /opt/
echo "... success!" echo "... success!"
fi fi

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################# #################
# NGINX SETTING # # NGINX SETTING #
@@ -9,14 +10,14 @@ declare portainer_protocol=http
# Generate Ingress configuration # Generate Ingress configuration
if bashio::config.true 'ssl'; then if bashio::config.true 'ssl'; then
bashio::config.require.ssl bashio::config.require.ssl
portainer_protocol=https portainer_protocol=https
sed -i "s|9000|9443|g" /etc/nginx/includes/upstream.conf sed -i "s|9000|9443|g" /etc/nginx/includes/upstream.conf
sed -i "s|9000|9443|g" /etc/services.d/nginx/run sed -i "s|9000|9443|g" /etc/services.d/nginx/run
sed -i "s|9099 default_server|9099 ssl|g" /etc/nginx/templates/ingress.gtpl sed -i "s|9099 default_server|9099 ssl|g" /etc/nginx/templates/ingress.gtpl
sed -i '7 i ssl_certificate /ssl/{{ .certfile }};' /etc/nginx/templates/ingress.gtpl sed -i '7 i ssl_certificate /ssl/{{ .certfile }};' /etc/nginx/templates/ingress.gtpl
sed -i '7 i ssl_certificate_key /ssl/{{ .keyfile }};' /etc/nginx/templates/ingress.gtpl sed -i '7 i ssl_certificate_key /ssl/{{ .keyfile }};' /etc/nginx/templates/ingress.gtpl
bashio::log.info "Ssl enabled, please use https for connection" bashio::log.info "Ssl enabled, please use https for connection"
fi fi
bashio::var.json \ bashio::var.json \
@@ -25,8 +26,7 @@ bashio::var.json \
protocol "${portainer_protocol}" \ protocol "${portainer_protocol}" \
certfile "$(bashio::config 'certfile')" \ certfile "$(bashio::config 'certfile')" \
keyfile "$(bashio::config 'keyfile')" \ keyfile "$(bashio::config 'keyfile')" \
ssl "^$(bashio::config 'ssl')" \ ssl "^$(bashio::config 'ssl')" |
| tempio \ tempio \
-template /etc/nginx/templates/ingress.gtpl \ -template /etc/nginx/templates/ingress.gtpl \
-out /etc/nginx/servers/ingress.conf -out /etc/nginx/servers/ingress.conf

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Home Assistant Community Add-on: Portainer # Home Assistant Community Add-on: Portainer
# Runs some initializations for Portainer # Runs some initializations for Portainer

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
bashio::log.info "Waiting for port 9000 to open..." bashio::log.info "Waiting for port 9000 to open..."

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################# #################
# NGINX SETTING # # NGINX SETTING #
@@ -9,7 +10,7 @@ declare qbittorrent_protocol=http
# Generate Ingress configuration # Generate Ingress configuration
if bashio::config.true 'ssl'; then if bashio::config.true 'ssl'; then
qbittorrent_protocol=https qbittorrent_protocol=https
fi fi
cp /etc/nginx/templates/ingress.gtpl /etc/nginx/servers/ingress.conf cp /etc/nginx/templates/ingress.gtpl /etc/nginx/servers/ingress.conf
@@ -20,16 +21,15 @@ sed -i "s|{{ .certfile }}|$(bashio::config 'certfile')|g" /etc/nginx/servers/ing
sed -i "s|{{ .keyfile }}|$(bashio::config 'keyfile')|g" /etc/nginx/servers/ingress.conf sed -i "s|{{ .keyfile }}|$(bashio::config 'keyfile')|g" /etc/nginx/servers/ingress.conf
sed -i "s|{{ .ssl }}|$(bashio::config 'ssl')|g" /etc/nginx/servers/ingress.conf sed -i "s|{{ .ssl }}|$(bashio::config 'ssl')|g" /etc/nginx/servers/ingress.conf
###################### ######################
# VUETORRENT INSTALL # # VUETORRENT INSTALL #
###################### ######################
LATEST_RELEASE=$(curl -s -L https://api.github.com/repos/wdaan/vuetorrent/releases/latest \ LATEST_RELEASE=$(curl -s -L https://api.github.com/repos/wdaan/vuetorrent/releases/latest |
| grep "browser_download_url.*zip" \ grep "browser_download_url.*zip" |
| cut -d : -f 2,3 \ cut -d : -f 2,3 |
| tr -d \" \ tr -d \" |
| xargs) xargs)
curl -s -S -O -J -L $LATEST_RELEASE curl -s -S -O -J -L $LATEST_RELEASE
unzip -o vuetorrent.zip -d / >/dev/null unzip -o vuetorrent.zip -d / >/dev/null

View File

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

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
declare openvpn_config declare openvpn_config

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
WEBUI_PORT=${WEBUI_PORT:-8080} WEBUI_PORT=${WEBUI_PORT:-8080}

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Wait for transmission to become available # Wait for transmission to become available

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
WEBUI_PORT=${WEBUI_PORT:-8080} WEBUI_PORT=${WEBUI_PORT:-8080}

View File

@@ -1,14 +1,17 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
WEBUI_PORT=${WEBUI_PORT:-8080} WEBUI_PORT=${WEBUI_PORT:-8080}
RUNTIME=$(bashio::config 'run_duration') RUNTIME=$(bashio::config 'run_duration')
if bashio::config.true 'openvpn_enabled'; then if bashio::config.true 'openvpn_enabled'; then
exec /usr/sbin/openvpn --config /etc/openvpn/config.ovpn --script-security 2 --up /etc/openvpn/up.sh --down /etc/openvpn/down.sh \ exec /usr/sbin/openvpn --config /etc/openvpn/config.ovpn --script-security 2 --up /etc/openvpn/up.sh --down /etc/openvpn/down.sh \
& bashio::log.warning "The run_duration option is set. The addon will stop after $RUNTIME" &
bashio::log.warning "The run_duration option is set. The addon will stop after $RUNTIME"
else else
exec s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" \ exec s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" \
& bashio::log.warning "The run_duration option is set. The addon will stop after $RUNTIME" &
bashio::log.warning "The run_duration option is set. The addon will stop after $RUNTIME"
fi fi
sleep $RUNTIME || bashio::log.fatal "run_duration format is not correct. Use 5d or 5h or 5m for example" sleep $RUNTIME || bashio::log.fatal "run_duration format is not correct. Use 5d or 5h or 5m for example"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION') CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')
bashio::log.info "Config stored in $CONFIG_LOCATION" bashio::log.info "Config stored in $CONFIG_LOCATION"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
############## ##############
# Data usage # # Data usage #
@@ -35,15 +36,15 @@ FREQUENCY=$(bashio::config 'Updates')
bashio::log.info "$FREQUENCY updates" bashio::log.info "$FREQUENCY updates"
case $FREQUENCY in case $FREQUENCY in
"Hourly") "Hourly")
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
;; ;;
"Daily") "Daily")
sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root
;; ;;
"Weekly") "Weekly")
sed -i -e '$a 0 0 * * 0 /run.sh' /etc/crontabs/root sed -i -e '$a 0 0 * * 0 /run.sh' /etc/crontabs/root
;; ;;
esac esac

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################# #################
# NGINX SETTING # # NGINX SETTING #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Wait for transmission to become available # Wait for transmission to become available

View File

@@ -1,9 +1,9 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# wait for scrutiny to load # wait for scrutiny to load
bashio::net.wait_for 8080 bashio::net.wait_for 8080
##################### #####################
# ADD LOCAL DEVICES # # ADD LOCAL DEVICES #
##################### #####################

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
slug="tandoor_recipes" slug="tandoor_recipes"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
##################### #####################
# Export env values # # Export env values #
@@ -26,9 +27,9 @@ mariadb_addon)
bashio::log.info "Using MariaDB addon. Requirements : running MariaDB addon. Discovering values..." bashio::log.info "Using MariaDB addon. Requirements : running MariaDB addon. Discovering values..."
if ! bashio::services.available 'mysql'; then if ! bashio::services.available 'mysql'; then
bashio::log.fatal \ bashio::log.fatal \
"Local database access should be provided by the MariaDB addon" "Local database access should be provided by the MariaDB addon"
bashio::exit.nok \ bashio::exit.nok \
"Please ensure it is installed and started" "Please ensure it is installed and started"
fi fi
# Install mysqlclient # Install mysqlclient

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
rm -rf /etc/cont-init.d/20-config || true rm -rf /etc/cont-init.d/20-config || true

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
JSONTOCHECK='/config/transmission/settings.json' JSONTOCHECK='/config/transmission/settings.json'
JSONSOURCE='/defaults/settings.json' JSONSOURCE='/defaults/settings.json'

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################### ###################
# INGRESS SETTING # # INGRESS SETTING #
@@ -11,7 +12,7 @@ declare keyfile
# General values # General values
port=$(bashio::addon.ingress_port) port=$(bashio::addon.ingress_port)
if [ $port > 1 ]; then if [ $port ] >1; then
# Adapt nginx # Adapt nginx
sed -i "s|%%port%%|$port|g" /etc/nginx/servers/ingress.conf sed -i "s|%%port%%|$port|g" /etc/nginx/servers/ingress.conf
sed -i "s|%%interface%%|$(bashio::addon.ip_address)|g" /etc/nginx/servers/ingress.conf sed -i "s|%%interface%%|$(bashio::addon.ip_address)|g" /etc/nginx/servers/ingress.conf

View File

@@ -1,17 +1,17 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
slug=ubooquity slug=ubooquity
if [ ! -d /config/addons_config/$slug ]; then if [ ! -d /config/addons_config/$slug ]; then
if [ -d /config/$slug ]; then if [ -d /config/$slug ]; then
echo "Moving to new location /config/addons_config/$slug" echo "Moving to new location /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug
chmod 777 /config/addons_config/$slug chmod 777 /config/addons_config/$slug
mv /config/$slug/* /config/addons_config/$slug/ mv /config/$slug/* /config/addons_config/$slug/
rm -r /config/$slug rm -r /config/$slug
fi fi
echo "Creating /config/addons_config/$slug" echo "Creating /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug mkdir -p /config/addons_config/$slug

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
############### ###############
# SSL SETTING # # SSL SETTING #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
########### ###########
# FOLDERS # # FOLDERS #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################ ################
# Alternate UI # # Alternate UI #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Wait for transmission to become available # Wait for transmission to become available

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Define home # Define home
HOME="/share/webtop" HOME="/share/webtop"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Uprade # Uprade
echo "Updating distribution" echo "Updating distribution"
@@ -8,20 +9,20 @@ apt-get -y upgrade >/dev/null || true
# Fix mate software center # Fix mate software center
if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then
echo "Allow software center" echo "Allow software center"
chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
service dbus restart service dbus restart
fi fi
# Install specific apps # Install specific apps
if bashio::config.has_value 'additional_apps'; then if bashio::config.has_value 'additional_apps'; then
bashio::log.info "Installing additional apps :" bashio::log.info "Installing additional apps :"
# Install apps # Install apps
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
bashio::log.green "... $APP" bashio::log.green "... $APP"
# Test install with both apt-get and snap # Test install with both apt-get and snap
apt-get install -yqq $APP &>/dev/null \ apt-get install -yqq $APP &>/dev/null &&
&& bashio::log.green "... done" \ bashio::log.green "... done" ||
|| bashio::log.red "... not successful, please check package name" bashio::log.red "... not successful, please check package name"
done done
fi fi