mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-22 08:41:50 +02:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
e5adbd266f
commit
f728166b14
@@ -6,14 +6,14 @@
|
||||
############
|
||||
|
||||
if bashio::config.has_value 'TZ'; then
|
||||
TIMEZONE=$(bashio::config 'TZ')
|
||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||
if [ -f /usr/share/zoneinfo/"$TIMEZONE" ]; then
|
||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
||||
echo "$TIMEZONE" >/etc/timezone
|
||||
else
|
||||
bashio::log.fatal "$TIMEZONE not found, are you sure it is a valid timezone?"
|
||||
fi
|
||||
TIMEZONE=$(bashio::config 'TZ')
|
||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||
if [ -f /usr/share/zoneinfo/"$TIMEZONE" ]; then
|
||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
||||
echo "$TIMEZONE" >/etc/timezone
|
||||
else
|
||||
bashio::log.fatal "$TIMEZONE not found, are you sure it is a valid timezone?"
|
||||
fi
|
||||
fi
|
||||
|
||||
#################
|
||||
@@ -32,7 +32,7 @@ export FB_BASEURL
|
||||
declare ADDON_PROTOCOL=http
|
||||
# Generate Ingress configuration
|
||||
if bashio::config.true 'ssl'; then
|
||||
ADDON_PROTOCOL=https
|
||||
ADDON_PROTOCOL=https
|
||||
fi
|
||||
|
||||
#port=$(bashio::addon.port 80)
|
||||
@@ -46,10 +46,10 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
||||
|
||||
# Correct baseurl
|
||||
for file in /config/hypercorn.toml $(find /usr -name hypercorn.toml.default); do
|
||||
if [ -f "$file" ]; then
|
||||
sed -i "/root_path/d" "$file"
|
||||
sed -i "1a root_path = \"${FB_BASEURL}\"" "$file"
|
||||
fi
|
||||
if [ -f "$file" ]; then
|
||||
sed -i "/root_path/d" "$file"
|
||||
sed -i "1a root_path = \"${FB_BASEURL}\"" "$file"
|
||||
fi
|
||||
done
|
||||
|
||||
##############
|
||||
@@ -60,7 +60,8 @@ bashio::log.warning "Default password admin:admin..."
|
||||
bashio::log.info "Starting..."
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
/./usr/local/bin/codex & true
|
||||
/./usr/local/bin/codex &
|
||||
true
|
||||
|
||||
bashio::net.wait_for 9810 localhost 900 || true
|
||||
bashio::log.info "Started !"
|
||||
|
||||
Reference in New Issue
Block a user