2 # preinst script for ossec-hids
3 # Santiago Bassett <santiago.bassett@gmail.com>
8 # configuration variables
9 OSSEC_HIDS_TMP_DIR="/tmp/ossec-hids"
11 # environment configuration
12 if [ ! -d ${OSSEC_HIDS_TMP_DIR} ]; then
13 mkdir ${OSSEC_HIDS_TMP_DIR}
18 # back up the current user rules
19 if [ -f /var/ossec/rules/local_rules.xml ]; then
20 cp /var/ossec/rules/local_rules.xml ${OSSEC_HIDS_TMP_DIR}/local_rules.xml
29 echo "preinst called with unknown argument \`$1'" >&2