Fix missing path for OpenSoldat
This commit is contained in:
parent
cb4c4e59ae
commit
333ee4909e
|
@ -38,7 +38,7 @@ mkdir build && cd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/opt/opensoldat -DBUILD_CLIENT=False ..
|
cmake -DCMAKE_INSTALL_PREFIX=/opt/opensoldat -DBUILD_CLIENT=False ..
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
mkdir -p /opt/opensoldat/bin/configs
|
mkdir -p /opt/opensoldat/bin/configs /opt/opensoldat/bin/logs
|
||||||
cp -r ${builddir}/base/server/configs/bots /opt/opensoldat/bin/configs/bots
|
cp -r ${builddir}/base/server/configs/bots /opt/opensoldat/bin/configs/bots
|
||||||
|
|
||||||
if ! [ -L /usr/games/opensoldatserver ]; then
|
if ! [ -L /usr/games/opensoldatserver ]; then
|
||||||
|
@ -181,7 +181,7 @@ inf_Warehouse
|
||||||
inf_Warlock
|
inf_Warlock
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chown -R ${systemuser}: /opt/opensoldat/bin/configs
|
chown -R ${systemuser}: /opt/opensoldat/bin/configs /opt/opensoldat/bin/logs
|
||||||
|
|
||||||
# Create SystemD unit
|
# Create SystemD unit
|
||||||
cat > /etc/systemd/system/opensoldat.service <<EOF
|
cat > /etc/systemd/system/opensoldat.service <<EOF
|
||||||
|
@ -206,6 +206,7 @@ After=network.target,opensoldat.service
|
||||||
Requires=opensoldat.service
|
Requires=opensoldat.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
ExecStartPre=/bin/sh -c 'sleep 10'
|
||||||
ExecStart=/usr/bin/console2web -a "${systempassword}" -p 62554 -b "${systempassword}" telnet localhost 23073
|
ExecStart=/usr/bin/console2web -a "${systempassword}" -p 62554 -b "${systempassword}" telnet localhost 23073
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=${systemuser}
|
User=${systemuser}
|
||||||
|
@ -215,7 +216,7 @@ WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now opensoldat.service
|
systemctl enable --now opensoldat.service opensoldat-monitor.service
|
||||||
|
|
||||||
cat > /etc/nginx/gameserver.d/opensoldat.conf <<EOF
|
cat > /etc/nginx/gameserver.d/opensoldat.conf <<EOF
|
||||||
location /opensoldat {
|
location /opensoldat {
|
||||||
|
|
Reference in New Issue