|
7 | 7 |
|
8 | 8 | moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
9 | 9 |
|
10 |
| -echo -e "applying WebAdmin ROOst.css fix." |
11 |
| -echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
| 10 | +# echo -e "applying WebAdmin ROOst.css fix." |
| 11 | +# echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
12 | 12 | sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
|
13 | 13 | sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
|
14 |
| -fn_sleep_time |
15 |
| -echo -e "applying WebAdmin CharSet fix." |
16 |
| -echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
| 14 | +# echo -e "applying WebAdmin CharSet fix." |
| 15 | +# echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
17 | 16 | sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
|
18 |
| -fn_sleep_time |
19 |
| -echo -e "applying server name fix." |
20 |
| -fn_sleep_time |
21 |
| -echo -e "forcing server restart..." |
22 |
| -fn_sleep_time |
23 |
| -exitbypass=1 |
24 |
| -command_start.sh |
25 |
| -fn_firstcommand_reset |
26 |
| -fn_sleep_time_5 |
27 |
| -exitbypass=1 |
28 |
| -command_stop.sh |
29 |
| -fn_firstcommand_reset |
30 |
| -exitbypass=1 |
31 |
| -command_start.sh |
32 |
| -fn_firstcommand_reset |
33 |
| -fn_sleep_time_5 |
34 |
| -exitbypass=1 |
35 |
| -command_stop.sh |
36 |
| -fn_firstcommand_reset |
| 17 | + |
| 18 | +# get md5sum of steamclient.so |
| 19 | +if [ -f "${serverfiles}/System/steamclient.so" ]; then |
| 20 | + steamclientmd5=$(md5sum "${serverfiles}/System/steamclient.so" | awk '{print $1;}') |
| 21 | +fi |
| 22 | +#get md5sum of libtier0_s.so |
| 23 | +if [ -f "${serverfiles}/System/libtier0_s.so" ]; then |
| 24 | + libtier0_smd5=$(md5sum "${serverfiles}/System/libtier0_s.so" | awk '{print $1;}') |
| 25 | +fi |
| 26 | +#get md5sum of libvstdlib_s.so |
| 27 | +if [ -f "${serverfiles}/System/libvstdlib_s.so" ]; then |
| 28 | + libvstdlib_smd5=$(md5sum "${serverfiles}/System/libvstdlib_s.so" | awk '{print $1;}') |
| 29 | +fi |
| 30 | + |
| 31 | +# get md5sum of steamclient.so from steamcmd |
| 32 | +if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then |
| 33 | + steamcmdsteamclientmd5=$(md5sum "${HOME}/.steam/steamcmd/linux32/steamclient.so" | awk '{print $1;}') |
| 34 | +elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
| 35 | + steamcmdsteamclientmd5=$(md5sum "${steamcmddir}/linux32/steamclient.so" | awk '{print $1;}') |
| 36 | +elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" ]; then |
| 37 | + steamcmdsteamclientmd5=$(md5sum "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" | awk '{print $1;}') |
| 38 | +fi |
| 39 | + |
| 40 | +# get md5sum of libtier0_s.so from steamcmd |
| 41 | +if [ -f "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" ]; then |
| 42 | + steamcmdlibtier0_smd5=$(md5sum "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" | awk '{print $1;}') |
| 43 | +elif [ -f "${steamcmddir}/linux32/libtier0_s.so" ]; then |
| 44 | + steamcmdlibtier0_smd5=$(md5sum "${steamcmddir}/linux32/libtier0_s.so" | awk '{print $1;}') |
| 45 | +elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" ]; then |
| 46 | + steamcmdlibtier0_smd5=$(md5sum "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" | awk '{print $1;}') |
| 47 | +fi |
| 48 | + |
| 49 | +# get md5sum of libvstdlib_s.so from steamcmd |
| 50 | +if [ -f "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
| 51 | + steamcmdlibvstdlib_smd5=$(md5sum "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" | awk '{print $1;}') |
| 52 | +elif [ -f "${steamcmddir}/linux32/libvstdlib_s.so" ]; then |
| 53 | + steamcmdlibvstdlib_smd5=$(md5sum "${steamcmddir}/linux32/libvstdlib_s.so" | awk '{print $1;}') |
| 54 | +elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
| 55 | + steamcmdlibvstdlib_smd5=$(md5sum "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" | awk '{print $1;}') |
| 56 | +fi |
| 57 | + |
| 58 | +if [ ! -f "${serverfiles}/System/steamclient.so" ] || [ "${steamcmdsteamclientmd5}" != "${steamclientmd5}" ]; then |
| 59 | + fixname="steamclient.so x86" |
| 60 | + fn_fix_msg_start |
| 61 | + if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then |
| 62 | + cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/System/steamclient.so" |
| 63 | + elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
| 64 | + cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/System/steamclient.so" |
| 65 | + elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" ]; then |
| 66 | + cp "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" "${serverfiles}/System/steamclient.so" |
| 67 | + fi |
| 68 | + fn_fix_msg_end |
| 69 | +fi |
| 70 | + |
| 71 | +if [ ! -f "${serverfiles}/System/libtier0_s.so" ] || [ "${steamcmdlibtier0_smd5}" != "${libtier0_smd5}" ]; then |
| 72 | + fixname="libtier0_s.so" |
| 73 | + fn_fix_msg_start |
| 74 | + if [ -f "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" ]; then |
| 75 | + cp "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" "${serverfiles}/System/libtier0_s.so" |
| 76 | + elif [ -f "${steamcmddir}/linux32/libtier0_s.so" ]; then |
| 77 | + cp "${steamcmddir}/linux32/libtier0_s.so" "${serverfiles}/System/libtier0_s.so" |
| 78 | + elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" ]; then |
| 79 | + cp "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" "${serverfiles}/System/libtier0_s.so" |
| 80 | + fi |
| 81 | + fn_fix_msg_end |
| 82 | +fi |
| 83 | + |
| 84 | +if [ ! -f "${serverfiles}/System/libvstdlib_s.so" ] || [ "${steamcmdlibvstdlib_smd5}" != "${libvstdlib_smd5}" ]; then |
| 85 | + fixname="libvstdlib_s.so" |
| 86 | + fn_fix_msg_start |
| 87 | + if [ -f "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
| 88 | + cp "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" "${serverfiles}/System/libvstdlib_s.so" |
| 89 | + elif [ -f "${steamcmddir}/linux32/libvstdlib_s.so" ]; then |
| 90 | + cp "${steamcmddir}/linux32/libvstdlib_s.so" "${serverfiles}/System/libvstdlib_s.so" |
| 91 | + elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
| 92 | + cp "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" "${serverfiles}/System/libvstdlib_s.so" |
| 93 | + fi |
| 94 | + fn_fix_msg_end |
| 95 | +fi |
| 96 | + |
| 97 | +# if running install command |
| 98 | +if [ "${commandname}" == "INSTALL" ]; then |
| 99 | + echo -e "applying server name fix." |
| 100 | + fn_sleep_time |
| 101 | + echo -e "forcing server restart..." |
| 102 | + fn_sleep_time |
| 103 | + exitbypass=1 |
| 104 | + command_start.sh |
| 105 | + fn_firstcommand_reset |
| 106 | + fn_sleep_time_5 |
| 107 | + exitbypass=1 |
| 108 | + command_stop.sh |
| 109 | + fn_firstcommand_reset |
| 110 | + exitbypass=1 |
| 111 | + command_start.sh |
| 112 | + fn_firstcommand_reset |
| 113 | + fn_sleep_time_5 |
| 114 | + exitbypass=1 |
| 115 | + command_stop.sh |
| 116 | + fn_firstcommand_reset |
| 117 | +fi |
0 commit comments