mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Automatically adapt port
This commit is contained in:
@@ -7,6 +7,13 @@ if [ ! -f "$file" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
##############
|
||||
# ADAPT PORT #
|
||||
##############
|
||||
|
||||
sed -i "/HTTP_PORT/d" "$file"
|
||||
sed -i "/server/a HTTP_PORT = $(bashio::addon.port 3000)" "$file"
|
||||
|
||||
##############
|
||||
# OTHER CONF #
|
||||
##############
|
||||
|
||||
Reference in New Issue
Block a user