agentx
config
debian
changelog
control
govpp-snmp-agentx.postrm.debhelper
postinst
prerm
rules
go-agentx
ifmib
logger
vppstats
.gitignore
LICENSE
Makefile
README.md
go.mod
go.sum
govpp-snmp-agentx.service
main.go
main_test.go
29 lines
558 B
Bash
Executable File
29 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# Create agentx directories
|
|
mkdir -p /var/agentx/master
|
|
chown Debian-snmp:vpp /var/agentx /var/agentx/master
|
|
chmod 770 /var/agentx /var/agentx/master
|
|
|
|
# Enable and start the service
|
|
systemctl daemon-reload
|
|
systemctl enable govpp-snmp-agentx.service
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|