Simplify service file, no longer require permissions on /run/vpp, and set optimal perms on agentx

This commit is contained in:
Pim van Pelt
2025-06-17 00:37:15 +02:00
parent 0b4ff36130
commit fa437ddaf1
3 changed files with 2 additions and 9 deletions

5
debian/postinst vendored
View File

@ -4,11 +4,6 @@ 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

1
debian/rules vendored
View File

@ -25,4 +25,5 @@ override_dh_auto_test:
override_dh_auto_clean:
rm -f govpp-snmp-agentx
[ -d debian/go ] && chmod -R +w debian/go || true
rm -rf debian/.gocache debian/go obj-*