mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-20 13:00:32 +02:00
hadolint
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
###################
|
||||
# INGRESS SETTING #
|
||||
@@ -11,7 +12,7 @@ declare keyfile
|
||||
|
||||
# General values
|
||||
port=$(bashio::addon.ingress_port)
|
||||
if [ $port > 1 ]; then
|
||||
if [ $port ] >1; then
|
||||
# Adapt nginx
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user