diff --git a/gitea/rootfs/etc/cont-init.d/99-run.sh b/gitea/rootfs/etc/cont-init.d/99-run.sh index c3bc57920..7db6492fd 100644 --- a/gitea/rootfs/etc/cont-init.d/99-run.sh +++ b/gitea/rootfs/etc/cont-init.d/99-run.sh @@ -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 # ##############