-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
executable file
·78 lines (58 loc) · 2.19 KB
/
init.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# Copyright 2015 Las Venturas Playground. All rights reserved.
# Use of this source code is governed by the MIT license, a copy of which can
# be found in the LICENSE file.
if [ ! -f server.cfg-private ]; then
echo "You must have a server.cfg-private file to initialize the LVP server."
exit 1
fi
chmod +x samp03svr samp-npc announce start.sh cores/stack.sh
if [ ! -d data ]; then
ln -s ../playground/data data
fi
if [ ! -d javascript ]; then
ln -s ../playground/javascript javascript
fi
if [ ! -f plugins/json-plugin.so ]; then
ln -s ../../json-plugin/src/out/json-plugin.so plugins/json-plugin.so
fi
if [ ! -f plugins/mysql-plugin.so ]; then
ln -s ../../mysql-plugin/src/out/mysql-plugin.so plugins/mysql-plugin.so
fi
if [ ! -f plugins/playgroundjs-plugin.so ]; then
ln -s ../../playgroundjs-plugin/src/out/playgroundjs-plugin.so plugins/playgroundjs-plugin.so
fi
if [ ! -f libchrome_zlib.so ]; then
ln -s ../playgroundjs-plugin/src/out/libchrome_zlib.so libchrome_zlib.so
fi
if [ ! -f libv8.so ]; then
ln -s ../playgroundjs-plugin/src/out/libv8.so libv8.so
fi
if [ ! -f libv8_libbase.so ]; then
ln -s ../playgroundjs-plugin/src/out/libv8_libbase.so libv8_libbase.so
fi
if [ ! -f libv8_libplatform.so ]; then
ln -s ../playgroundjs-plugin/src/out/libv8_libplatform.so libv8_libplatform.so
fi
if [ ! -f icudtl.dat ]; then
ln -s ../playgroundjs-plugin/src/out/icudtl.dat icudtl.dat
fi
if [ ! -f libicui18n.so ]; then
ln -s ../playgroundjs-plugin/src/out/libicui18n.so libicui18n.so
fi
if [ ! -f libicuuc.so ]; then
ln -s ../playgroundjs-plugin/src/out/libicuuc.so libicuuc.so
fi
if [ ! -f plugins/streamer.so ]; then
ln -s ../../samp-streamer-plugin/bin/linux/Release/streamer.so plugins/streamer.so
fi
if [ ! -f plugins/zone-manager-plugin.so ]; then
ln -s ../../zone-manager-plugin/src/out/zone-manager-plugin.so plugins/zone-manager-plugin.so
fi
# Create server.cfg by combining server.cfg-base and server.cfg-private
source server.cfg-private
eval "echo \"$(< server.cfg-base)\"" > server.cfg
# Clear the server_log.txt file from previous versions of this script.
echo > server_log.txt
echo "The LVP server has been initialized. You can now run it using:"
echo "$ ./start.sh"