utils/spacewalk-hostname-rename | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit a29ad894e3ec4db369414b02130bf14bf4f4ebdb Author: Jan Pazdziora jpazdziora@redhat.com Date: Fri Aug 31 15:39:16 2012 +0200
853025 - make sure the regular expressions actually match.
diff --git a/utils/spacewalk-hostname-rename b/utils/spacewalk-hostname-rename index d205e40..abd7068 100755 --- a/utils/spacewalk-hostname-rename +++ b/utils/spacewalk-hostname-rename @@ -344,12 +344,12 @@ EOS }
function update_monitoring_data { - if [[ "$IP" =~ "$IPV4ADDR_REGEX" ]]; then + if [[ "$IP" =~ $IPV4ADDR_REGEX ]]; then MON_UPDATE="UPDATE rhn_sat_cluster SET vip = '$IP' WHERE public_key LIKE '${NOCPULSE_OLD_PUBLIC_KEY}%'; UPDATE rhn_sat_node SET ip = '$IP' WHERE EXISTS (SELECT 1 FROM rhn_sat_cluster RSC WHERE RSC.public_key LIKE '${NOCPULSE_OLD_PUBLIC_KEY}%' AND sat_cluster_id = RSC.recid); COMMIT;" fi - if [[ "$IP" =~ "$IPV6ADDR_REGEX" ]]; then + if [[ "$IP" =~ $IPV6ADDR_REGEX ]]; then MON_UPDATE="UPDATE rhn_sat_cluster SET vip6 = '$IP' WHERE public_key LIKE '${NOCPULSE_OLD_PUBLIC_KEY}%'; UPDATE rhn_sat_node SET ip6 = '$IP' WHERE EXISTS (SELECT 1 FROM rhn_sat_cluster RSC WHERE RSC.public_key LIKE '${NOCPULSE_OLD_PUBLIC_KEY}%' AND sat_cluster_id = RSC.recid); COMMIT;"
spacewalk-commits@lists.fedorahosted.org