Skip to content

Commit

Permalink
Merge pull request #718 from m-1-k-3/updater_fix
Browse files Browse the repository at this point in the history
load python environment in updater
  • Loading branch information
m-1-k-3 authored Jul 24, 2023
2 parents c15e810 + 8f35cca commit 4ad8756
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/emba_updater.init
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ LOG_DIR="/var/log"
[ -x /etc/init.d/redis-server ] || exit 0
[ -d "$LOG_DIR" ] || exit 0

if [ -f EMBA_INSTALL_PATH/external/emba_venv/bin/activate ]; then
source EMBA_INSTALL_PATH/external/emba_venv/bin/activate
fi

if command -v cve_searchsploit > /dev/null ; then
echo "[*] EMBA update - cve_searchsploit update" | tee -a "$LOG_DIR"/emba_update.log
cve_searchsploit -u | tee -a "$LOG_DIR"/emba_update.log
Expand All @@ -28,3 +32,7 @@ EMBA_INSTALL_PATH/external/cve-search/sbin/db_updater.py -v | tee -a "$LOG_DIR"/

echo "[*] EMBA update - update local docker image" | tee -a "$LOG_DIR"/emba_update.log
docker pull embeddedanalyzer/emba | tee -a "$LOG_DIR"/emba_update.log

if [ -f EMBA_INSTALL_PATH/external/emba_venv/bin/activate ]; then
deactivate
fi

0 comments on commit 4ad8756

Please sign in to comment.