Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Dec 11, 2024
1 parent 659a86b commit 6d142cb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lgsm/modules/fix_dst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,3 @@ if [ -f "/etc/redhat-release" ] && [ ! -f "${serverfiles}/bin/lib32/libcurl-gnut
ln -s "/usr/lib/libcurl.so.4" "${serverfiles}/bin/lib32/libcurl-gnutls.so.4"
fn_fix_msg_end
fi

# Keeps shard name in server.ini the same as in the LinuxGSM config.
if [ -f "${servercfgfullpath}" ]; then
if [ "$(grep -Ec '^name[[:space:]]*=' "${servercfgfullpath}")" -eq 1 ]; then
if [ "$(grep -E '^name[[:space:]]*=' "${servercfgfullpath}" | cut -d '=' -f2 | tr -d '"' | tr -d ' ')" != "${shard}" ]; then
fixname="update server.ini shard name"
fn_fix_msg_start
sed -i -e "s/name[[:space:]]*=.*/name = \"${shard}\"/g" "${servercfgfullpath}"
fn_fix_msg_end
fi
fi
fi

0 comments on commit 6d142cb

Please sign in to comment.