Zion Boggan
repos/SOC Automation Lab/integrations/custom-thehive
zionboggan.com ↗
12 lines · text
History for this file →
1
#!/bin/sh
2
WPYTHON_BIN="framework/python/bin/python3"
3
SCRIPT_PATH_NAME="$0"
4
DIR_NAME="$(cd "$(dirname "${SCRIPT_PATH_NAME}")" && pwd)"
5
WAZUH_PATH="$(cd "${DIR_NAME}/.." && pwd)"
6
PYTHON_SCRIPT="${DIR_NAME}/custom-thehive.py"
7
 
8
if [ -x "${WAZUH_PATH}/${WPYTHON_BIN}" ]; then
9
    "${WAZUH_PATH}/${WPYTHON_BIN}" "${PYTHON_SCRIPT}" "$@"
10
else
11
    python3 "${PYTHON_SCRIPT}" "$@"
12
fi