forked from tofi92/jkajaplusserver-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_server.sh
33 lines (26 loc) · 964 Bytes
/
start_server.sh
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
#!/bin/bash
if [ `ls -1 /ja/assets/assets*.pk3 2>/dev/null | wc -l ` -gt 3 ]; then
echo "The 4 .pk3 files are present";
cp /ja/assets/* /ja/base;
echo "copying assets to base directory";
else
echo "Error: All 4 .pk3 files must be present!";
exit 2;
fi
if [ `ls -1 /ja/base/cgamei386.so | wc -l ` -lt 1 ]; then
cp /ja/base_original/cgamei386.so /ja/base/cgamei386.so;
echo "copying cgamei386.so to base directory";
fi
if [ `ls -1 /ja/base/jampgamei386.so | wc -l ` -lt 1 ]; then
cp /ja/base_original/jampgamei386.so /ja/base/jampgamei386.so;
echo "copying jampgamei386.so to base directory";
fi
if [ `ls -1 /ja/base/uii386.so | wc -l ` -lt 1 ]; then
cp /ja/base_original/uii386.so /ja/base/uii386.so;
echo "copying uii386.so to base directory";
fi
if test -f "japluscfg/server.cfg"; then
rm japlus/server.cfg;
cp japluscfg/server.cfg japlus/server.cfg;
fi
/bin/bash ./start_japlus_linux_autoRestart.sh;