Skip to content

Commit 4718bc9

Browse files
committedMar 2, 2025·
Fix some issues which were missed when upgrading to v4.
1 parent f5ac948 commit 4718bc9

10 files changed

+22
-11
lines changed
 

‎Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ RUN adduser -u 10000 -h /inspircd/ -D -S -G inspircd inspircd
1919

2020
RUN git clone --branch $VERSION https://github.com/inspircd/inspircd.git inspircd-src
2121

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+
2226
WORKDIR /inspircd-src
2327
RUN git checkout $(git describe --abbrev=0 --tags $VERSION)
2428

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Provide the SHA256 fingerprint of the certificate as `INSP_OPER_FINGERPRINT` to
143143
|-------------------------|--------------------------------|----------------------------------------------|
144144
|`INSP_OPER_NAME` |`oper` |Oper name for usage with `/oper` |
145145
|`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 |
147147

148148

149149
## Linking servers and services

‎conf/inspircd.conf

+6
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,12 @@
10331033

10341034
<include file="modules.conf">
10351035

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+
10361042
#-#-#-#-#-#-#-#-#-#-#- INSANE BAN OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#-#
10371043
# #
10381044
# This optional tag allows you to specify how wide a G-line, E-line, #

‎conf/links.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if [ "${SENDPASS}" != "" ] && [ "${RECVPASS}" != "" ] && [ "${NAME}" != "" ] &&
7878

7979
# Set TLS support by extending the generation config extension
8080
if [ "${TLS_ON}" = "yes" ]; then
81-
OPTIONS="$OPTIONS ssl=\"gnutls\""
81+
OPTIONS="$OPTIONS sslprofile=\"main\""
8282
fi
8383

8484
if [ "$FINGERPRINT" != "" ]; then

‎conf/opers.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cat <<EOF
2020
<define name="operName" value="${INSP_OPER_NAME:-oper}">
2121
<define name="operPassword" value="${INSP_OPER_PASSWORD_HASH}">
2222
<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}">
2424
<define name="operSSLOnly" value="${INSP_OPER_SSLONLY:-yes}">
2525
<define name="operHash" value="${INSP_OPER_HASH:-hmac-sha256}">
2626
<define name="operHost" value="${INSP_OPER_HOST:-*@*}">
@@ -132,6 +132,7 @@ cat <<EOF
132132
# the private key is well-protected! Requires m_sslinfo.
133133
autologin="&operAutologin;"
134134
135+
nopassword="yes"
135136
sslonly="&operSSLOnly;"
136137
type="NetAdmin">
137138
EOF

‎conf/services.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
# Set TLS support by extending the generation config extension
2929
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\""
3131
fi
3232

3333
# Set default services name
@@ -44,9 +44,9 @@ cat <<EOF
4444
recvpass="${INSP_SERVICES_RECVPASS}"
4545
${INSP_SERVICES_OPTIONS}>
4646
47-
<uline server="$INSP_SERVICES_NAME" silent="yes">
47+
<services server="$INSP_SERVICES_NAME" silent="yes">
4848
49-
<module name="m_sasl.so">
49+
<module name="sasl">
5050
<sasl target="$INSP_SERVICES_NAME">
5151
EOF
5252
fi

‎tests/customBuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mkdir -p "$TESTDIR"
1818

1919
cp -r . "$TESTDIR"
2020

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"
2222

2323
[ ! -e "$TESTDIR/modules/m_geocmd.cpp" ] && sleep 10
2424

‎tests/customConfig.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TESTFILE="/tmp/tests-customConfig/test.conf"
1616

1717
mkdir -p "$(dirname $TESTFILE)"
1818

19-
echo "<module name=\"m_cban.so\">" >"$TESTFILE"
19+
echo "<module name=\"cban\">" >"$TESTFILE"
2020

2121
# Run container with configs attached
2222
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)

‎tests/extras.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -e
1212
# shellcheck source=tests/.portconfig.sh
1313
. "$(dirname "$0")/.portconfig.sh"
1414

15-
TESTMODULE="m_svsoper"
15+
TESTMODULE="m_geocmd"
1616

1717
# Create directory for testing
1818
mkdir -p /tmp/test-extras/

‎tests/linking.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ DOCKERCONTAINER2=$(docker run -d --name test2 --network linkingTestNet -e INSP_S
2626
sleep 10
2727

2828
# 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
3030
sleep 60;
3131
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"
3333

3434
# Clean up
3535
docker stop "${DOCKERCONTAINER1}" "${DOCKERCONTAINER2}" && docker rm "${DOCKERCONTAINER1}" "${DOCKERCONTAINER2}" && docker network rm "$DOCKERNETWORK"

0 commit comments

Comments
 (0)
Please sign in to comment.