Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@

- [BUGFIX] Fix issue with windows_exporter mssql collector crashing the agent. (@mattdurham)

- [BUGFIX] The deb and rpm files will now ensure the /var/lib/grafana-agent
data directory is created with permissions set to 0770. (@rfratto)

# v0.22.0 (2022-01-13)

This release has deprecations. Please read [DEPRECATION] entries and consult
Expand Down
6 changes: 6 additions & 0 deletions packaging/deb/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ case "$1" in
usermod -a -G systemd-journal "$GRAFANA_AGENT_USER"
fi

if [ ! -d /var/lib/grafana-agent ]; then
mkdir -p /var/lib/grafana-agent
chown $GRAFANA_AGENT_USER:$GRAFANA_AGENT_GROUP /var/lib/grafana-agent
chmod 770 /var/lib/grafana-agent
fi

chmod 640 /etc/grafana-agent.yaml
chown root:$GRAFANA_AGENT_GROUP /etc/grafana-agent.yaml

Expand Down
7 changes: 6 additions & 1 deletion packaging/rpm/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ if [ "$1" -eq 1 ] ; then

add_to_logging_groups

chown $AGENT_USER:$AGENT_GROUP /var/lib/grafana-agent
if [ ! -d /var/lib/grafana-agent ]; then
mkdir -p /var/lib/grafana-agent
chown $AGENT_USER:$AGENT_GROUP /var/lib/grafana-agent
chmod 770 /var/lib/grafana-agent
fi

chmod 640 /etc/grafana-agent.yaml
chown root:$AGENT_GROUP /etc/grafana-agent.yaml

Expand Down