diff options
author | Ermal <eri@pfsense.org> | 2012-07-14 07:24:20 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-14 07:24:20 +0000 |
commit | b5e914f72a3858c74edde7d4c7efca41b386ca2f (patch) | |
tree | 1169ac5dd89c4f39f4fa51e0b64a4ef8d8ccdc84 /config | |
parent | b2b2b71abf4bc071006e431caeca7818d10d6297 (diff) | |
download | pfsense-packages-b5e914f72a3858c74edde7d4c7efca41b386ca2f.tar.gz pfsense-packages-b5e914f72a3858c74edde7d4c7efca41b386ca2f.tar.bz2 pfsense-packages-b5e914f72a3858c74edde7d4c7efca41b386ca2f.zip |
php copy wants both src dst files defined
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort_check_for_rule_updates.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 355e505d..6a6390cb 100644 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -328,13 +328,13 @@ function oinkmaster_run($snortcfg, $if_real) { log_error(gettext("Your enable and disable changes are being applied to your fresh set of rules...")); exec("/usr/local/bin/perl /usr/local/bin/oinkmaster.pl -C {$snortdir}/tmp/oinkmaster_{$snortcfg['uuid']}.conf -o {$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/rules >> {$snortdir}/oinkmaster.log"); } - @copy("{$snortdir}/classification.config", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); - copy("{$snortdir}/gen-msg.map", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); + @copy("{$snortdir}/classification.config", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/classification.config"); + @copy("{$snortdir}/gen-msg.map", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/gen-msg.map"); exec("/bin/cp -r {$snortdir}/generators {$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); - @copy("{$snortdir}/reference.config", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); - @copy("{$snortdir}/sid", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); - @copy("{$snortdir}/sid-msg.map", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); - @copy("{$snortdir}/unicode.map", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}"); + @copy("{$snortdir}/reference.config", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/reference.config"); + @copy("{$snortdir}/sid", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/sid"); + @copy("{$snortdir}/sid-msg.map", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/sid-msg.map"); + @copy("{$snortdir}/unicode.map", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/unicode.map"); } ////////////// |