soup should respect current indentation in soc_global.sls

This commit is contained in:
Doug Burks
2023-08-13 16:46:32 -04:00
committed by GitHub
parent faca36e74c
commit f3a58cd336

View File

@@ -562,7 +562,7 @@ update_version() {
echo "Updating the Security Onion version file."
echo $NEWVERSION > /etc/soversion
echo $HOTFIXVERSION > /etc/sohotfix
sed -i "/ soversion:/c\ soversion: $NEWVERSION" /opt/so/saltstack/local/pillar/global/soc_global.sls
sed -i "s/soversion:.*/soversion: $NEWVERSION/" /opt/so/saltstack/local/pillar/global/soc_global.sls
}
upgrade_check() {