-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.sh
35 lines (31 loc) · 837 Bytes
/
launch.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
# read ini file into variables
. /etc/pp2host/pp2host.conf
# The important undocumented -start -argument
ARGS="-start"
if [ "$PUBLIC" = "no" ]; then
ARGS="$ARGS -nopublic"
fi
if [ "$PUBLIC_WEB" = "no" ]; then
ARGS="$ARGS -hideweb"
fi
# Run the server
/usr/sbin/pp2host \
${ARGS} \
-pid "/var/run/pilkki.pid" \
-port "${NETWORK_PORT}" \
-playername "${PLAYER_NAME}" \
-playernation "${PLAYER_NATION}" \
-playerpassword "${ADMIN_PASSWORD}" \
-gamepassword "${GAME_PASSWORD}" \
-hostpassword "${HOST_PASSWORD}" \
-adminpassword "${ADMIN_PASSWORD}" \
-recmail "${REC_MAIL}" \
-recpassword "${REC_PASSWORD}" \
-hello "${HELLO}" \
-pathdata "/usr/share/pp2host" \
-pathsettings "/etc/pp2host/static" \
-pathlogs "/etc/pp2host/static" \
-pathtemp "/etc/pp2host/static" \
-minver "${MIN_CLIENT_VER}" \
-maxver "${MAX_CLIENT_VER}"
#sleep 3600