mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
caba7e0ecc
commit
de0e40c2ea
@@ -220,7 +220,7 @@ if bashio::config.has_value 'networkdisks'; then
|
||||
echo "... using SMBv1"
|
||||
bashio::log.warning "...... share reachable only with legacy SMBv1 (NT1) negotiation. Forcing SMBv1 options."
|
||||
SMBVERS_FORCE=",vers=1.0"
|
||||
SECVERS_FORCE=",sec=ntlm"
|
||||
SECVERS_FORCE=",sec=ntlm"
|
||||
elif ! echo "$OUTPUT" | grep -q "Disk"; then
|
||||
echo "... testing path"
|
||||
bashio::log.fatal "...... no shares found. Invalid or inaccessible SMB path?"
|
||||
|
||||
0
emby_beta/rootfs/etc/services.d/nginx/run
Normal file → Executable file
0
emby_beta/rootfs/etc/services.d/nginx/run
Normal file → Executable file
@@ -107,11 +107,11 @@ case $(bashio::config 'DB_CONNECTION') in
|
||||
bashio::log.info "Creating database for Firefly-iii if required"
|
||||
# Create database without SSL requirement
|
||||
mysql \
|
||||
--skip-ssl \
|
||||
-u "${DB_USERNAME}" -p"${DB_PASSWORD}" \
|
||||
-h "${DB_HOST}" -P "${DB_PORT}" \
|
||||
-e "CREATE DATABASE IF NOT EXISTS \`firefly\`;"
|
||||
;;
|
||||
--skip-ssl \
|
||||
-u "${DB_USERNAME}" -p"${DB_PASSWORD}" \
|
||||
-h "${DB_HOST}" -P "${DB_PORT}" \
|
||||
-e "CREATE DATABASE IF NOT EXISTS \`firefly\`;"
|
||||
;;
|
||||
|
||||
# Use remote
|
||||
*)
|
||||
|
||||
@@ -6,7 +6,7 @@ fix_file="/etc/chromium.d/dev-shm"
|
||||
|
||||
if [ -f "${fix_file}" ]; then
|
||||
bashio::log.info "Patching Chromium shared memory helper for reliable startup"
|
||||
cat <<'PATCH' > "${fix_file}"
|
||||
cat << 'PATCH' > "${fix_file}"
|
||||
# shellcheck shell=sh
|
||||
# Patched by alexbelgium/hassio-addons to avoid arithmetic errors with large values on some shells.
|
||||
shm_avail=$(findmnt -bnr -o avail -T /dev/shm 2>/dev/null)
|
||||
|
||||
@@ -7,16 +7,16 @@ echo "Warning - minimum configuration recommended: 2 CPU cores and 4 GB of memor
|
||||
chromium_wrapper="/usr/bin/chromium"
|
||||
|
||||
if [[ -f "${chromium_wrapper}" ]]; then
|
||||
if [[ ! -x /bin/bash ]]; then
|
||||
bashio::log.warning "Chromium wrapper patch skipped: /bin/bash is not available."
|
||||
else
|
||||
if grep -q '^#!/bin/sh' "${chromium_wrapper}"; then
|
||||
if grep -q '==' "${chromium_wrapper}"; then
|
||||
bashio::log.info "Adjusting Chromium wrapper to use bash for compatibility with Chromium 140."
|
||||
sed -i '1s|/bin/sh|/bin/bash|' "${chromium_wrapper}"
|
||||
fi
|
||||
if [[ ! -x /bin/bash ]]; then
|
||||
bashio::log.warning "Chromium wrapper patch skipped: /bin/bash is not available."
|
||||
else
|
||||
if grep -q '^#!/bin/sh' "${chromium_wrapper}"; then
|
||||
if grep -q '==' "${chromium_wrapper}"; then
|
||||
bashio::log.info "Adjusting Chromium wrapper to use bash for compatibility with Chromium 140."
|
||||
sed -i '1s|/bin/sh|/bin/bash|' "${chromium_wrapper}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
##############
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
declare config
|
||||
|
||||
config=$(\
|
||||
config=$(
|
||||
bashio::var.json \
|
||||
host "http://127.0.0.1" \
|
||||
port "^$(bashio::addon.port 9001)" \
|
||||
port "^$(bashio::addon.port 9001)"
|
||||
)
|
||||
|
||||
if bashio::discovery "mealie" "${config}" > /dev/null; then
|
||||
|
||||
0
nzbget/rootfs/etc/services.d/nginx/run
Normal file → Executable file
0
nzbget/rootfs/etc/services.d/nginx/run
Normal file → Executable file
Reference in New Issue
Block a user