Automatically adapt port

This commit is contained in:
Alexandre
2022-09-19 10:48:07 +02:00
committed by GitHub
parent 8acf27d2fa
commit 470a20e086

View File

@@ -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 #
############## ##############