Project

General

Profile

Actions

Bug #686

closed
VJ PM

ppa: package doesn't install a config

Bug #686: ppa: package doesn't install a config

Added by Victor Julien over 13 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

After installation there is no config anywhere. After #684 is addressed, /etc/suricata should have the default yaml, a classification config and reference.config.

PM Updated by Peter Manev over 13 years ago Actions #1

Should we overwrite if there is a yaml config already ? May be not a good idea, or should we give the end user an option?

VJ Updated by Victor Julien over 13 years ago Actions #2

Maybe we should install it as suricata-ubuntu.yaml. Then we won't conflict with a already existing copy that is not managed by the deb package.

PM Updated by Peter Manev over 13 years ago Actions #3

ok,
could we use suricata-ubuntu-ppa.yaml?
a bit more intuitive maybe.

VJ Updated by Victor Julien over 13 years ago Actions #4

That works as well.

PM Updated by Peter Manev over 13 years ago Actions #5

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed and updated in Ubuntu PPA
Config files are now installed in /etcs/suricata/UbuntuPPA-configs/

VJ Updated by Victor Julien about 13 years ago Actions #6

  • Status changed from Resolved to Assigned
  • % Done changed from 100 to 50

We're not quite there yet:

# suricata
9/1/2013 -- 17:32:22 - <Info> - This is Suricata version 1.4 RELEASE
9/1/2013 -- 17:32:22 - <Info> - CPUs/cores online: 2
Failed to open file: /etc/suricata//suricata.yaml: No such file or directory

If I use the supplied one:

# suricata -c /etc/suricata/UbuntuPPA-configs/suricata-ppa-1.4-6ubuntu6.yaml -i eth0
9/1/2013 -- 17:33:17 - <Info> - This is Suricata version 1.4 RELEASE
<...snip...>
9/1/2013 -- 17:33:18 - <Error> - [ERRCODE: SC_ERR_FOPEN(44)] - Error opening file: "/usr/local/etc/suricata/classification.config": No such file or directory
9/1/2013 -- 17:33:18 - <Info> - Please check the "classification-file" option in your suricata.yaml file

Actually I'm coming back to the original idea to just place the files in /etc/suricata without the odd names. I think for example debian does it the same way.

VJ Updated by Victor Julien about 13 years ago Actions #7

Or maybe we can put them in /usr/share/suricata/ and have the post install script from the deb copy them to the /etc/suricata dir, without overwriting what is already there.

PM Updated by Peter Manev about 13 years ago Actions #8

Fixed.
/etc/suricata/ - is used now for the config files (just like Debian).
Ubuntu PPA - stable updated.

VJ Updated by Victor Julien over 12 years ago Actions #9

  • Target version set to TBD

PM Updated by Peter Manev almost 12 years ago Actions #10

  • Status changed from Assigned to Closed
  • % Done changed from 50 to 100

This was fixed a while back ago.

VJ Updated by Victor Julien almost 11 years ago Actions #11

  • Target version deleted (TBD)

VJ Updated by Victor Julien almost 11 years ago Actions #12

  • Target version set to Packaging/PPA
Actions

Also available in: PDF Atom