File tree 10 files changed +22
-11
lines changed
10 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ RUN adduser -u 10000 -h /inspircd/ -D -S -G inspircd inspircd
19
19
20
20
RUN git clone --branch $VERSION https://github.com/inspircd/inspircd.git inspircd-src
21
21
22
+ # TODO: remove this after updating to the next release
23
+ RUN wget --output-document - --output-file /dev/null https://github.com/inspircd/inspircd/commit/030d71057597553dad26df8d9491c00f95bff669.patch | git -C inspircd-src apply
24
+ RUN wget --output-document - --output-file /dev/null https://github.com/inspircd/inspircd/commit/42afdfd072c16bb762c5f7db9f0eed19b1acedf6.patch | git -C inspircd-src apply
25
+
22
26
WORKDIR /inspircd-src
23
27
RUN git checkout $(git describe --abbrev=0 --tags $VERSION)
24
28
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ Provide the SHA256 fingerprint of the certificate as `INSP_OPER_FINGERPRINT` to
143
143
| -------------------------| --------------------------------| ----------------------------------------------|
144
144
| ` INSP_OPER_NAME ` | ` oper ` | Oper name for usage with ` /oper ` |
145
145
| ` INSP_OPER_FINGERPRINT ` | no default | Oper TLS fingerprint (SHA256) |
146
- | ` INSP_OPER_AUTOLOGIN ` | ` yes ` | Automatic login of with TLS fingerprint |
146
+ | ` INSP_OPER_AUTOLOGIN ` | ` no ` | Automatic login of with TLS fingerprint |
147
147
148
148
149
149
## Linking servers and services
Original file line number Diff line number Diff line change 1033
1033
1034
1034
<include file="modules.conf">
1035
1035
1036
+ <include executable="sh conf/opers.sh">
1037
+ <include executable="sh conf/links.sh LINK1">
1038
+ <include executable="sh conf/links.sh LINK2">
1039
+ <include executable="sh conf/links.sh LINK3">
1040
+ <include executable="sh conf/services.sh">
1041
+
1036
1042
#-#-#-#-#-#-#-#-#-#-#- INSANE BAN OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#-#
1037
1043
# #
1038
1044
# This optional tag allows you to specify how wide a G-line, E-line, #
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ if [ "${SENDPASS}" != "" ] && [ "${RECVPASS}" != "" ] && [ "${NAME}" != "" ] &&
78
78
79
79
# Set TLS support by extending the generation config extension
80
80
if [ " ${TLS_ON} " = " yes" ]; then
81
- OPTIONS=" $OPTIONS ssl =\" gnutls \" "
81
+ OPTIONS=" $OPTIONS sslprofile =\" main \" "
82
82
fi
83
83
84
84
if [ " $FINGERPRINT " != " " ]; then
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cat <<EOF
20
20
<define name="operName" value="${INSP_OPER_NAME:- oper} ">
21
21
<define name="operPassword" value="${INSP_OPER_PASSWORD_HASH} ">
22
22
<define name="operFingerprint" value="${INSP_OPER_FINGERPRINT} ">
23
- <define name="operAutologin" value="${INSP_OPER_AUTOLOGIN:- yes } ">
23
+ <define name="operAutologin" value="${INSP_OPER_AUTOLOGIN:- no } ">
24
24
<define name="operSSLOnly" value="${INSP_OPER_SSLONLY:- yes} ">
25
25
<define name="operHash" value="${INSP_OPER_HASH:- hmac-sha256} ">
26
26
<define name="operHost" value="${INSP_OPER_HOST:-*@* } ">
@@ -132,6 +132,7 @@ cat <<EOF
132
132
# the private key is well-protected! Requires m_sslinfo.
133
133
autologin="&operAutologin;"
134
134
135
+ nopassword="yes"
135
136
sslonly="&operSSLOnly;"
136
137
type="NetAdmin">
137
138
EOF
Original file line number Diff line number Diff line change 27
27
28
28
# Set TLS support by extending the generation config extension
29
29
if [ " ${INSP_SERVICES_TLS_ON} " = " yes" ]; then
30
- INSP_SERVICES_OPTIONS=" $INSP_SERVICES_OPTIONS ssl =\" gnutls \" "
30
+ INSP_SERVICES_OPTIONS=" $INSP_SERVICES_OPTIONS sslprofile =\" main \" "
31
31
fi
32
32
33
33
# Set default services name
@@ -44,9 +44,9 @@ cat <<EOF
44
44
recvpass="${INSP_SERVICES_RECVPASS} "
45
45
${INSP_SERVICES_OPTIONS} >
46
46
47
- <uline server="$INSP_SERVICES_NAME " silent="yes">
47
+ <services server="$INSP_SERVICES_NAME " silent="yes">
48
48
49
- <module name="m_sasl.so ">
49
+ <module name="sasl ">
50
50
<sasl target="$INSP_SERVICES_NAME ">
51
51
EOF
52
52
fi
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ mkdir -p "$TESTDIR"
18
18
19
19
cp -r . " $TESTDIR "
20
20
21
- wget -O " $TESTDIR /modules/m_geocmd.cpp" " https://raw.githubusercontent.com/inspircd/inspircd-contrib/master/3 /m_geocmd.cpp"
21
+ wget -O " $TESTDIR /modules/m_geocmd.cpp" " https://raw.githubusercontent.com/inspircd/inspircd-contrib/master/4 /m_geocmd.cpp"
22
22
23
23
[ ! -e " $TESTDIR /modules/m_geocmd.cpp" ] && sleep 10
24
24
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ TESTFILE="/tmp/tests-customConfig/test.conf"
16
16
17
17
mkdir -p " $( dirname $TESTFILE ) "
18
18
19
- echo " <module name=\" m_cban.so \" >" > " $TESTFILE "
19
+ echo " <module name=\" cban \" >" > " $TESTFILE "
20
20
21
21
# Run container with configs attached
22
22
DOCKERCONTAINER=$( docker run -d -v " $TESTFILE :/inspircd/conf.d/test.conf" -p " 127.0.0.1:${CLIENT_PORT} :6667" -p " 127.0.0.1:${TLS_CLIENT_PORT} :6697" inspircd:testing)
Original file line number Diff line number Diff line change 12
12
# shellcheck source=tests/.portconfig.sh
13
13
. " $( dirname " $0 " ) /.portconfig.sh"
14
14
15
- TESTMODULE=" m_svsoper "
15
+ TESTMODULE=" m_geocmd "
16
16
17
17
# Create directory for testing
18
18
mkdir -p /tmp/test-extras/
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ DOCKERCONTAINER2=$(docker run -d --name test2 --network linkingTestNet -e INSP_S
26
26
sleep 10
27
27
28
28
# Check logs of the deamons
29
- if ! docker logs " $DOCKERCONTAINER1 " | grep " LINK:.*Received.*end.*of.*netburst.*from.*test2.example.com" ; then
29
+ if ! docker logs " $DOCKERCONTAINER1 " | grep " LINK.* :.*Received.*end.*of.*netburst.*from.*test2.example.com" ; then
30
30
sleep 60;
31
31
fi
32
- docker logs " $DOCKERCONTAINER2 " | grep " LINK:.*Received.*end.*of.*netburst.*from.*test1.example.com"
32
+ docker logs " $DOCKERCONTAINER2 " | grep " LINK.* :.*Received.*end.*of.*netburst.*from.*test1.example.com"
33
33
34
34
# Clean up
35
35
docker stop " ${DOCKERCONTAINER1} " " ${DOCKERCONTAINER2} " && docker rm " ${DOCKERCONTAINER1} " " ${DOCKERCONTAINER2} " && docker network rm " $DOCKERNETWORK "
You can’t perform that action at this time.
0 commit comments