packages-deb/netxms-agent.postinst
Alex Kirhenshtein 1871128bcb Initial import
2016-09-27 16:43:45 +03:00

39 lines
690 B
Bash

#!/bin/sh
set -e
CONFIG="/etc/nxagentd.conf"
case "$1" in
configure)
if [ ! -f $CONFIG ]; then
TARGET=$CONFIG
else
TARGET=${CONFIG}.dist
fi
cat > $TARGET <<__END
# Log File
LogFile=/var/log/nxagentd
# IP white list, can contain multiple records separated by comma.
# CIDR notation supported for subnets.
MasterServers=127.0.0.0/8
__END
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0