diff --git a/make-classic.sh b/make-classic.sh index af813fe..99bf427 100755 --- a/make-classic.sh +++ b/make-classic.sh @@ -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