-
Notifications
You must be signed in to change notification settings - Fork 470
Installer script fixes #2585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Installer script fixes #2585
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -744,7 +744,7 @@ function install_suricata() { | |
python3 -c "pa = '/etc/suricata/suricata.yaml';q=open(pa, 'rb').read().replace(b'eve-log:\n enabled: no\n', b'eve-log:\n enabled: yes\n');open(pa, 'wb').write(q);" | ||
python3 -c "pa = '/etc/suricata/suricata.yaml';q=open(pa, 'rb').read().replace(b'unix-command:\n enabled: auto\n #filename: custom.socket', b'unix-command:\n enabled: yes\n filename: /tmp/suricata-command.socket');open(pa, 'wb').write(q);" | ||
# file-store | ||
python3 -c "pa = '/etc/suricata/suricata.yaml';q=open(pa, 'rb').read().replace(b'file-store:\n version: 2\n enabled: no', b'file-store:\n version: 2\n enabled: yes');open(pa, 'wb').write(q);" | ||
python3 -c "pa = '/etc/suricata/suricata.yaml';q=open(pa, 'rb').read().replace(b'file-store:\n version: 2\n enabled: no', b'file-store:\n version: 2\n enabled: yes');open(pa, 'wb').write(q);" | ||
ChrisThibodeaux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
chown ${USER}:${USER} -R /etc/suricata | ||
chown ${USER}:${USER} -R /var/log/suricata | ||
|
@@ -797,7 +797,7 @@ function install_yara() { | |
ldconfig | ||
|
||
# Run yara installer script | ||
sudo -u ${USER} /etc/poetry/bin/poetry --directory /opt/CAPEv2 run /opt/CAPEv2/extra/yara_installer.sh | ||
sudo -u ${USER} /etc/poetry/bin/poetry --directory /opt/CAPEv2 run extra/yara_installer.sh | ||
ChrisThibodeaux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Comment on lines
799
to
801
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the pull request description, you asked @doomedraven if this script needs to run in the installer script. It would be good to resolve this question, and either remove the script if it's not needed, or add a comment explaining why it's necessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it needs to run it as otherwise you won't get it installed under poetry so cape won't be able to use them |
||
if [ -d yara-python ]; then | ||
sudo rm -rf yara-python | ||
|
@@ -944,7 +944,7 @@ function install_capa() { | |
cd capa || return | ||
git pull | ||
git submodule update --init rules | ||
/etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install . | ||
/etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install /tmp/capa | ||
ChrisThibodeaux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cd /opt/CAPEv2 | ||
if [ -d /tmp/capa ]; then | ||
sudo rm -rf /tmp/capa | ||
|
Uh oh!
There was an error while loading. Please reload this page.