soup should respect current indentation in soc_global.sls

This commit is contained in:
Doug Burks authored and GitHub committed 2023-08-13 16:46:32 -04:00
1 parent faca36e74c
commit f3a58cd336
1 file changed
+1 -1
+1 -1
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() {