Merge pull request #11034 from Security-Onion-Solutions/dougburks-patch-1

soup should respect current indentation in soc_global.sls
This commit is contained in:
Jason Ertel
2023-08-13 16:56:50 -04:00
committed by GitHub

View File

@@ -562,7 +562,7 @@ update_version() {
echo "Updating the Security Onion version file." echo "Updating the Security Onion version file."
echo $NEWVERSION > /etc/soversion echo $NEWVERSION > /etc/soversion
echo $HOTFIXVERSION > /etc/sohotfix 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() { upgrade_check() {