Skip to content

Commit

Permalink
small renaming, remove "poetry_"
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Aug 30, 2023
1 parent 13c5dc5 commit 5c9cdc5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# run this via...
# cd /opt/CAPEv2/ ; sudo -u cape poetry run extra/poetry_libvirt_installer.sh
# cd /opt/CAPEv2/ ; sudo -u cape poetry run extra/libvirt_installer.sh

LIB_VERSION=9.6.0
cd /tmp || return
Expand Down
22 changes: 0 additions & 22 deletions extra/poetry_yara_installer.sh

This file was deleted.

15 changes: 15 additions & 0 deletions extra/yara_installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# run this via...
# cd /opt/CAPEv2/ ; sudo -u cape poetry run extra/yara_installer.sh

if [ ! -d /tmp/yara-python ]; then
git clone --recursive https://github.com/VirusTotal/yara-python /tmp/yara-python
fi

cd /tmp/yara-python
python setup.py build --enable-cuckoo --enable-magic --enable-profiling
cd ..
# for root
pip install ./yara-python
rm -r yara-python
6 changes: 3 additions & 3 deletions installer/cape2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ function install_yara() {

if id "cape" >/dev/null 2>&1; then
cd /opt/CAPEv2/
sudo -u cape poetry run extra/poetry_yara_installer.sh
sudo -u cape poetry run extra/yara_installer.sh
cd -
fi
if [ -d yara-python ]; then
Expand Down Expand Up @@ -1171,8 +1171,8 @@ function install_CAPE() {
cd "/opt/CAPEv2/" || return
pip3 install poetry crudini
CRYPTOGRAPHY_DONT_BUILD_RUST=1 sudo -u ${USER} bash -c 'export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring; poetry install'
sudo -u ${USER} bash -c 'export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring; poetry run extra/poetry_libvirt_installer.sh'
sudo -u ${USER} bash -c 'poetry run extra/poetry_yara_installer.sh'
sudo -u ${USER} bash -c 'export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring; poetry run extra/libvirt_installer.sh'
sudo -u ${USER} bash -c 'poetry run extra/yara_installer.sh'

sudo usermod -aG kvm ${USER}
sudo usermod -aG libvirt ${USER}
Expand Down

0 comments on commit 5c9cdc5

Please sign in to comment.