#!/bin/sh
#
# Perform update-aide.conf call before calling aide, since the autogenerated
# configuration is now the default config file

PATH=/usr/sbin:/sbin:/usr/bin:/bin

if echo $@ | grep -q -- --config; then
  echo >&2 "not updating aide configuration since manual config option was given"
else
  update-aide.conf
fi
/usr/bin/aide.real $@
