(simatec) small fix

This commit is contained in:
simatec 2024-06-05 20:32:47 +02:00
parent 1dfb2767dd
commit ac5dabf202

View file

@ -84,7 +84,7 @@ required_version="1.4.5"
if compare_versions "$PILER_VERSION" "$required_version"; then if compare_versions "$PILER_VERSION" "$required_version"; then
file="/var/lib/docker/volumes/piler-docker_piler_etc/_data/manticore.conf" file="/var/lib/docker/volumes/piler-docker_piler_etc/_data/manticore.conf"
patchNum="pilerPatch_001" patchNum="pilerPatch001"
search_entry="127.0.0.1:9307:" search_entry="127.0.0.1:9307:"
new_entry="${entry}\tlisten\t\t\t= 127.0.0.1:9307:mysql_readonly" new_entry="${entry}\tlisten\t\t\t= 127.0.0.1:9307:mysql_readonly"
@ -99,7 +99,7 @@ if compare_versions "$PILER_VERSION" "$required_version"; then
if grep -q '\btlisten\b' "$file"; then if grep -q '\btlisten\b' "$file"; then
sed -i 's/\btlisten\b/listen/g' "$file" sed -i 's/\btlisten\b/listen/g' "$file"
fi fi
echo "Patch manticore.conf with new entry: listen = 127.0.0.1:9307:mysql_readonly" echo "Patch manticore.conf with new entry: listen = 127.0.0.1:9307:mysql_readonly"
else else
echo "Patch already executed. No action required" echo "Patch already executed. No action required"