Skip to content

Commit

Permalink
Create cloud scanner log directories on restart
Browse files Browse the repository at this point in the history
(cherry picked from commit 650a82c)
  • Loading branch information
ramanan-ravi committed Aug 3, 2024
1 parent 7fdd848 commit e279bf2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions deepfence_agent/plugins/etc/run_shipper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
BATCH_SIZE=${1:-100}
TRUNCATE_SIZE=${2:-10}
#!/bin/bash

exec $DF_INSTALL_DIR/home/deepfence/bin/shipper --base-path="${DF_INSTALL_DIR:-/}" --truncate-size=$TRUNCATE_SIZE --routes=$DF_INSTALL_DIR/home/deepfence/routes.yaml --batch-size=$BATCH_SIZE
export BATCH_SIZE=${1:-100}
export TRUNCATE_SIZE=${2:-10}

if [[ $DF_INSTALL_DIR == "/home/deepfence" ]]; then
exec /home/deepfence/bin/shipper --base-path="${DF_INSTALL_DIR:-/}" --truncate-size=$TRUNCATE_SIZE --routes=/home/deepfence/routes.yaml --batch-size=$BATCH_SIZE
else
exec $DF_INSTALL_DIR/home/deepfence/bin/shipper --base-path="${DF_INSTALL_DIR:-/}" --truncate-size=$TRUNCATE_SIZE --routes=$DF_INSTALL_DIR/home/deepfence/routes.yaml --batch-size=$BATCH_SIZE
fi

0 comments on commit e279bf2

Please sign in to comment.