X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fossec-hids%2Fvar%2Fossec%2Factive-response%2Fbin%2Frestart-ossec.sh;fp=debian%2Fossec-hids%2Fvar%2Fossec%2Factive-response%2Fbin%2Frestart-ossec.sh;h=0000000000000000000000000000000000000000;hb=946517cefb8751a43a89bda4220221f065f4e5d1;hp=25d5f774cfb8a73c1c04c6f9ea31af462b797c01;hpb=3f728675941dc69d4e544d3a880a56240a6e394a;p=ossec-hids.git diff --git a/debian/ossec-hids/var/ossec/active-response/bin/restart-ossec.sh b/debian/ossec-hids/var/ossec/active-response/bin/restart-ossec.sh deleted file mode 100755 index 25d5f77..0000000 --- a/debian/ossec-hids/var/ossec/active-response/bin/restart-ossec.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# Restarts ossec. -# Requirements: none -# Author: Daniel B. Cid - -ACTION=$1 -USER=$2 -IP=$3 - -LOCAL=`dirname $0`; -cd $LOCAL -cd ../ -PWD=`pwd` -UNAME=`uname` - - -# Logging the call -echo "`date` $0 $1 $2 $3 $4 $5" >> ${PWD}/../logs/active-responses.log - - - -# Adding the ip to hosts.deny -if [ "x${ACTION}" = "xadd" ]; then - ${PWD}/../bin/ossec-control restart - exit 0; - - -# Deleting from hosts.deny -elif [ "x${ACTION}" = "xdelete" ]; then - exit 0; - - -# Invalid action -else - echo "$0: invalid action: ${ACTION}" -fi - -exit 1;