Skip to content

Commit ce40267

Browse files
committed
Merge pull request #4 from wazuh/development
v1.05
2 parents f7ea450 + 679e8a7 commit ce40267

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [v1.05] - 2016-01-27
5+
### Fixed
6+
- *ossec_ruleset.py*:
7+
- Problem with installation path
8+
- New path: /var/ossec/**update/ruleset/**ossec_ruleset.py
9+
10+
411
## [v1.04] - 2016-01-25
512
### Added
613
- New Rootcheck: SSH Hardening

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.04
1+
1.05

ossec_ruleset.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# OSSEC Ruleset Installer and Updater
33

4-
# v2.2 2016/01/25
4+
# v2.2 2016/01/27
55
# Created by Wazuh, Inc. <[email protected]>.
66
77
# This program is a free software; you can redistribute it and/or modify it under the terms of GPLv2
@@ -337,7 +337,11 @@ def get_ruleset_from_menu(type_ruleset):
337337
logger.log("\nError: No folder {0}".format(directory))
338338
sys.exit(2)
339339

340-
type_directory = "rules" if "rules" in directory else "rootchecks"
340+
last_path = directory.split("/")[-1]
341+
if last_path == "rootcheck":
342+
type_directory = "rootchecks"
343+
else:
344+
type_directory = "rules"
341345

342346
ruleset_select = []
343347

@@ -1139,7 +1143,7 @@ def usage():
11391143
# Vars
11401144
ossec_path = "/var/ossec"
11411145
ossec_conf = "{0}/etc/ossec.conf".format(ossec_path)
1142-
updater_path = "{0}/updater/ruleset".format(ossec_path)
1146+
updater_path = "{0}/update/ruleset".format(ossec_path)
11431147
# updater_path = "."
11441148
bk_directory = "{0}/backups".format(updater_path)
11451149
log_path = "{0}/ossec_ruleset.log".format(updater_path)

0 commit comments

Comments
 (0)