(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 # 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 "/listen/!b; :a; {n; /listen/!ba}; a $new_entry" "$file"
sed -i "s/\<$patchNum\>//g" "$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" 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"

View file

@ -132,7 +132,7 @@ for ymlUpdate in piler-default.yml piler-ssl.yml; do
echo echo
done 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
echo "${purple}${HLINE}${HLINE_SMALL}" echo "${purple}${HLINE}${HLINE_SMALL}"
echo "${purple}****** Download Update $fileUpdate ******" echo "${purple}****** Download Update $fileUpdate ******"