Skip to content

Commit

Permalink
Fix wrapper (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstathis authored Aug 28, 2024
1 parent 8eed050 commit 2cb61c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions make-classic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ sed -i 's/CRAFT_PART_INSTALL/SNAPCRAFT_PART_INSTALL/g' snap/snapcraft.yaml
sed -i '/libbpfcc/d' snap/snapcraft.yaml
sed -i '/bpfcc-tools/d' snap/snapcraft.yaml
yq -i 'del(.apps.grafana-agent.plugs) | del(.plugs)' snap/snapcraft.yaml
cat << "EOF" > snap/local/agent-wrapper
#!/bin/sh
exec "${SNAP}/agent" -config.expand-env -config.file "/etc/grafana-agent.yaml"
EOF

0 comments on commit 2cb61c7

Please sign in to comment.