mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-13 00:22:31 +02:00
Fix set -u usage in qbittorrent run script
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
set +u
|
|
||||||
|
|
||||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||||
export PATH="/usr/local/sbin:/usr/local/bin:${PATH}"
|
export PATH="/usr/local/sbin:/usr/local/bin:${PATH}"
|
||||||
|
|
||||||
@@ -67,6 +65,7 @@ if bashio::config.true 'silent'; then
|
|||||||
exec >/dev/null 2>&1
|
exec >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set +u
|
||||||
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
exec s6-setuidgid abc "${QB_BIN}" --webui-port="${WEBUI_PORT}"
|
exec s6-setuidgid abc "${QB_BIN}" --webui-port="${WEBUI_PORT}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user