From 6d142cb0f7d29edb52ca4e6cf0772ba082ba0616 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 11 Dec 2024 21:57:04 +0000 Subject: [PATCH] revert --- lgsm/modules/fix_dst.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lgsm/modules/fix_dst.sh b/lgsm/modules/fix_dst.sh index d779befaef..2848fa5bb8 100644 --- a/lgsm/modules/fix_dst.sh +++ b/lgsm/modules/fix_dst.sh @@ -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