Skip to content

Commit

Permalink
support-advanced-model in all flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
roybarda committed Jul 25, 2023
1 parent 08583fd commit c7cb494
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ install_waap()
cp_exec "cp -f resources/cp-csrf.js /etc/cp/conf/waap/"
cp_exec "chmod 777 /etc/cp/conf/waap/cp-ab.js"
cp_exec "chmod 777 /etc/cp/conf/waap/cp-csrf.js"

# use advanced model if exist as data for waap
ADVANCED_MODEL_FILE=/advanced-model/open-appsec-advanced-model.tgz
if [ -f "$ADVANCED_MODEL_FILE" ]; then
cp_exec "tar -xzf $ADVANCED_MODEL_FILE -C /etc/cp/conf/waap"
fi
}

set_debug_configuration()
Expand Down

0 comments on commit c7cb494

Please sign in to comment.