#!/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_qos/
		echo cp mod_qos-$version.art.src.rpm mod_qos-latest.src.rpm
		cp  mod_qos-$version.art.src.rpm mod_qos-latest.src.rpm
		cp -f mod_qos-latest.src.rpm /pub/atomicorp/rules/installers/cpanel/
		rm mod_qos-latest.src.rpm

	popd


else
	echo "Not triggered"
fi