From 1dfb2767ddb08eb1022f06e3e2a3906b4d9a003f Mon Sep 17 00:00:00 2001 From: simatec Date: Wed, 5 Jun 2024 20:32:03 +0200 Subject: [PATCH] (simatec) small fix --- patch.sh | 5 +++++ update.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index 9354cf1..cc5ddad 100644 --- a/patch.sh +++ b/patch.sh @@ -95,6 +95,11 @@ if compare_versions "$PILER_VERSION" "$required_version"; then # If the entry does not exist, set the entry in the manticore.conf sed -i "/listen/!b; :a; {n; /listen/!ba}; a $new_entry" "$file" sed -i "s/\<$patchNum\>//g" "$file" + + if grep -q '\btlisten\b' "$file"; then + sed -i 's/\btlisten\b/listen/g' "$file" + fi + echo "Patch manticore.conf with new entry: listen = 127.0.0.1:9307:mysql_readonly" else echo "Patch already executed. No action required" diff --git a/update.sh b/update.sh index 03dfd01..55f181d 100644 --- a/update.sh +++ b/update.sh @@ -132,7 +132,7 @@ for ymlUpdate in piler-default.yml piler-ssl.yml; do echo done -for fileUpdate in install-piler.sh LICENSE piler.conf.example; do +for fileUpdate in install-piler.sh LICENSE piler.conf.example patch.sh; do echo echo "${purple}${HLINE}${HLINE_SMALL}" echo "${purple}****** Download Update $fileUpdate ******"