# Call subfunction and pass the desired IDS action.
&IDS::write_modify_sids_file($IDS_action);
+# Set correct ownership.
+&IDS::set_ownership("$IDS::modify_sids_file");
+
#
## Step 6: Move rulestarball to its new location.
#
# Set correct ownership.
&IDS::set_ownership("$IDS::rulestarball");
+
+# In case no tarball is present, try to download the ruleset.
+} else {
+ # Check if enought disk space is available.
+ if(&IDS::checkdiskspace()) {
+ # Call the download function and grab the new ruleset.
+ &IDS::downloadruleset();
+ }
}
#
if (-f $IDS::rulestarball) {
# Launch oinkmaster by calling the subfunction.
&IDS::oinkmaster();
+
+ # Set correct ownership for the rulesdir and files.
+ &IDS::set_ownership("$IDS::rulespath");
}
#