Skip to content

Commit

Permalink
Update upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
vikman90 committed Jul 1, 2019
1 parent 7a9e1d5 commit 7b7c9e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions update_ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ def same_major_minor(old_version, new_version):
def usage():
branch = get_branch() # 'stable' 'master' 'development'
msg = """
Update ruleset v3.2.0
Update ruleset
Github repository: https:/wazuh/wazuh-ruleset
Full documentation: http://documentation.wazuh.com/en/latest/wazuh_ruleset.html
Full documentation: https://documentation.wazuh.com/current/user-manual/ruleset/index.html
Usage: ./update_ruleset # Update Decoders, Rules and Rootchecks
./update_ruleset -b # Restore last backup
Expand Down Expand Up @@ -685,7 +685,7 @@ if __name__ == "__main__":
update_backups_rules = "{0}/rules".format(update_backups)
update_backups_rootchecks = "{0}/rootchecks".format(update_backups)

deprecated = {'rules': ['0355-amazon-ec2_rules.xml', '0370-amazon-iam_rules.xml', '0465-amazon-s3_rules.xml'], 'decoders': ['0020-amazon_decoders.xml'] }
deprecated = {'rules': ['0355-amazon-ec2_rules.xml', '0370-amazon-iam_rules.xml', '0465-amazon-s3_rules.xml', '0470-suricata_rules.xml', '0520-vulnerability-detector.xml', '0565-ms_ipsec_rules_json.xml'], 'decoders': ['0020-amazon_decoders.xml', '0005-json_decoders.xml'] }

if arguments['json']:
logger = RulesetLogger(tag="Wazuh-Ruleset", filename=ossec_ruleset_log, flag=RulesetLogger.O_FILE, debug=arguments['debug'])
Expand All @@ -697,4 +697,4 @@ if __name__ == "__main__":
try:
main()
except Exception as e:
exit(2, "Unknown: {0}.\nExiting.".format(e))
exit(2, "Unknown: {0}.\nExiting.".format(e))

0 comments on commit 7b7c9e2

Please sign in to comment.