File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,10 @@ if [ ! -d /tmp/yara-python ]; then
8
8
git clone --recursive https://github.com/VirusTotal/yara-python /tmp/yara-python
9
9
fi
10
10
11
- cd /tmp/yara-python
11
+ /etc/poetry/bin/poetry --directory /opt/CAPEv2 run bash -c " cd /tmp/yara-python && python setup.py build --enable-cuckoo --enable-magic --enable-profiling"
12
+ /etc/poetry/bin/poetry --directory /opt/CAPEv2 run pip install /tmp/yara-python
12
13
13
- /etc/poetry/bin/poetry --directory /opt/CAPEv2 run python setup.py build --enable-cuckoo --enable-magic --enable-profiling
14
- /etc/poetry/bin/poetry --directory /opt/CAPEv2 run pip install .
15
-
16
- cd ..
14
+ cd /tmp
17
15
18
16
if [ -d yara-python ]; then
19
17
rm -rf yara-python
Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ function install_yara() {
797
797
ldconfig
798
798
799
799
# Run yara installer script
800
- sudo -u ${USER} /etc/poetry/bin/poetry --directory /opt/CAPEv2 run /opt/CAPEv2/ extra/yara_installer.sh
800
+ sudo -u ${USER} /etc/poetry/bin/poetry --directory /opt/CAPEv2 run extra/yara_installer.sh
801
801
802
802
if [ -d yara-python ]; then
803
803
sudo rm -rf yara-python
@@ -944,7 +944,7 @@ function install_capa() {
944
944
cd capa || return
945
945
git pull
946
946
git submodule update --init rules
947
- /etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install .
947
+ /etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install /tmp/capa
948
948
cd /opt/CAPEv2
949
949
if [ -d /tmp/capa ]; then
950
950
sudo rm -rf /tmp/capa
You can’t perform that action at this time.
0 commit comments