diff --git a/build/packages/deb/postinst b/build/packages/deb/postinst index 756b6289db..1fbe516e1a 100644 --- a/build/packages/deb/postinst +++ b/build/packages/deb/postinst @@ -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:]]/ { diff --git a/build/packages/rpm/client/pmm-client.spec b/build/packages/rpm/client/pmm-client.spec index 724b610f36..98e78c8eb7 100644 --- a/build/packages/rpm/client/pmm-client.spec +++ b/build/packages/rpm/client/pmm-client.spec @@ -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:]]/ {