2
0

(simatec) small fix

This commit is contained in:
simatec
2024-06-05 20:32:03 +02:00
parent bd4fc495d1
commit 1dfb2767dd
2 changed files with 6 additions and 1 deletions

View File

@@ -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"