Skip to content

Commit

Permalink
Merge pull request #40 from openappsec/support-advance-model
Browse files Browse the repository at this point in the history
support-advanced-model in all flavors
  • Loading branch information
WrightNed committed Jul 25, 2023
2 parents 3ed569f + c7cb494 commit 71d198f
Showing 1 changed file with 6 additions and 0 deletions.
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 71d198f

Please sign in to comment.