3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

use \s instead of . for matching listener definition lines

This commit is contained in:
Shivaram Lingamneni 2020-03-07 23:55:45 -05:00
parent c38922005b
commit c58e12fb58

View File

@ -10,8 +10,8 @@ ADD . /go/src/github.com/oragono/oragono/
# modify default config file so that it doesn't die on IPv6 # modify default config file so that it doesn't die on IPv6
# and so it can be exposed via 6667 by default # and so it can be exposed via 6667 by default
run sed -i 's/^\(.*\)\"127.0.0.1:6667\":.*$/\1":6667":/' /go/src/github.com/oragono/oragono/oragono.yaml run sed -i 's/^\(\s*\)\"127.0.0.1:6667\":.*$/\1":6667":/' /go/src/github.com/oragono/oragono/oragono.yaml
run sed -i 's/^.*\"\[::1\]:6667\":.*$//' /go/src/github.com/oragono/oragono/oragono.yaml run sed -i 's/^\s*\"\[::1\]:6667\":.*$//' /go/src/github.com/oragono/oragono/oragono.yaml
# make sure submodules are up-to-date # make sure submodules are up-to-date
RUN git submodule update --init RUN git submodule update --init