Skip to content

Commit

Permalink
[PMM-13379]: Adds comments to explain the change.
Browse files Browse the repository at this point in the history
  • Loading branch information
maqeel75 committed Sep 27, 2024
1 parent dc89232 commit 4ca640f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/packages/deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ case "$1" in
mv /usr/local/percona/pmm/config/pmm-agent.yaml /usr/local/percona/pmm/config/pmm-agent.yaml.new

echo "Restoring pmm-agent.yaml from backup..."
# Take a backup of pmm-agent.yaml and then modify it to remove paths properties
mv /usr/local/percona/pmm2/config/pmm-agent.yaml.bak /usr/local/percona/pmm/config/pmm-agent.yaml.bak
cp /usr/local/percona/pmm/config/pmm-agent.yaml.bak /usr/local/percona/pmm/config/pmm-agent.yaml
sed '/^paths:/,/^[^[:space:]]/ {
Expand Down
1 change: 1 addition & 0 deletions build/packages/rpm/client/pmm-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ fi
%posttrans
if [ -f /usr/local/percona/pmm2/config/pmm-agent.yaml.bak ]; then
mv /usr/local/percona/pmm/config/pmm-agent.yaml /usr/local/percona/pmm/config/pmm-agent.yaml.new
# Take a backup of pmm-agent.yaml and then modify it to remove paths properties
mv /usr/local/percona/pmm2/config/pmm-agent.yaml.bak /usr/local/percona/pmm/config/pmm-agent.yaml.bak
cp /usr/local/percona/pmm/config/pmm-agent.yaml.bak /usr/local/percona/pmm/config/pmm-agent.yaml
sed '/^paths:/,/^[^[:space:]]/ {
Expand Down

0 comments on commit 4ca640f

Please sign in to comment.