Made the version update more reliable

This commit is contained in:
Mike Reeves
2020-09-15 11:09:01 -04:00
committed by GitHub
parent ee4b35f2e4
commit fc8ffd2080

View File

@@ -268,7 +268,7 @@ update_version() {
# Update the version to the latest
echo "Updating the Security Onion version file."
echo $NEWVERSION > /etc/soversion
sed -i "s/$INSTALLEDVERSION/$NEWVERSION/g" /opt/so/saltstack/local/pillar/global.sls
sed -i "/ soversion:/c\ soversion: $NEWVERSION" /opt/so/saltstack/local/pillar/global.sls
}
upgrade_check() {