-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy-unrealirc.sh
More file actions
executable file
·42 lines (40 loc) · 1.14 KB
/
deploy-unrealirc.sh
File metadata and controls
executable file
·42 lines (40 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -euo pipefail
rx='^([0-9]+\.){0,3}(\*|[0-9]+)$'
if ! [[ $UNREAL_VERSION =~ $rx ]]; then
echo "Invalid Unreal version: '$UNREAL_VERSION'"
exit 1
fi
wget https://www.unrealircd.org/downloads/unrealircd-$UNREAL_VERSION.tar.gz{,.asc}
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36E6F65706E36B0937280299101001DAF48BB56D
gpg --verify unrealircd-$UNREAL_VERSION.tar.gz.asc unrealircd-$UNREAL_VERSION.tar.gz
tar zxvf unrealircd-$UNREAL_VERSION.tar.gz
cd unrealircd-$UNREAL_VERSION
cat > config.settings <<'EOF'
BASEPATH="/home/ircd/unrealircd"
BINDIR="/home/ircd/unrealircd/bin"
DATADIR="/home/ircd/unrealircd/data"
CONFDIR="/home/ircd/unrealircd/conf"
MODULESDIR="/home/ircd/unrealircd/modules"
LOGDIR="/home/ircd/unrealircd/logs"
CACHEDIR="/home/ircd/unrealircd/cache"
DOCDIR="/home/ircd/unrealircd/doc"
TMPDIR="/home/ircd/unrealircd/tmp"
PRIVATELIBDIR="/home/ircd/unrealircd/lib"
MAXCONNECTIONS_REQUEST="auto"
NICKNAMEHISTORYLENGTH="2000"
GEOIP="classic"
DEFPERM="0600"
SSLDIR=""
REMOTEINC=""
CURLDIR=""
NOOPEROVERRIDE=""
OPEROVERRIDEVERIFY=""
GENCERTIFICATE=""
SANITIZER=""
EXTRAPARA=""
ADVANCED=""
EOF
./Config -quick
make
make install