#!/bin/sh name=$1 version=$2 event=$3 channel=$4 echo "WARNING: if version does not include the release variable then this will fail" if [ "$event" == "import" -a "$channel" == "asl-4.0" ]; then # copy mod_security src.rpm to www0 pushd /mnt/dar/packages/mod_security/ echo cp mod_security-$version.art.src.rpm mod_security-latest.src.rpm cp mod_security-$version.art.src.rpm mod_security-latest.src.rpm cp -f mod_security-latest.src.rpm /pub/atomicorp/rules/installers/cpanel/ rm mod_security-latest.src.rpm popd # Change WAF_ENGINE_VERSION, this is used by the anarchy_waf_update function in aum # Strip the so this can version=`echo $version |awk -F- '{print $1}'` perl -pi -e "s/WAF_ENGINE_VERSION.*/WAF_ENGINE_VERSION=$version/" /pub/atomicorp/rules/subscription/VERSION perl -pi -e "s/WAF_ENGINE_VERSION.*/WAF_ENGINE_VERSION=$version/" /pub/atomicorp/rules/VERSION perl -pi -e "s/WAF_ENGINE_VERSION.*/WAF_ENGINE_VERSION=$version/" /pub/atomicorp/asl-2.0/rules/VERSION else echo "Not triggered" fi