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