match elasticsearch at beginning of line

This commit is contained in:
m0duspwnens committed 2021-09-21 13:54:45 -04:00
1 parent 5c2be487f5
commit d82e91f69e
1 file changed
+1 -1
+1 -1
View File
@@ -639,7 +639,7 @@ up_2.3.5X_to_2.3.80() {
if [[ "$tc" == "true" ]]; then
tcname=$(grep -w true_cluster_name /opt/so/saltstack/local/pillar/global.sls | awk -F: {'print $2'})
sed -i "/elasticsearch:/a \\ config: \n cluster: \n name: $tcname" /opt/so/saltstack/local/pillar/global.sls
sed -i "/^elasticsearch:/a \\ config: \n cluster: \n name: $tcname" /opt/so/saltstack/local/pillar/global.sls
sed -i '/ true_cluster_name/d' /opt/so/saltstack/local/pillar/global.sls
fi