Skip to content

Commit

Permalink
PMM-11280 Add links script for pmm client debian package
Browse files Browse the repository at this point in the history
Create links for files "pmm-admin" and "pmm-agent" which will be automatically deleted when the package is uninstalled.
  • Loading branch information
surbhat1595 committed Sep 12, 2023
1 parent 9b9ac7c commit 15cd511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions build/packages/deb/links
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/usr/local/percona/pmm2/bin/pmm-admin /usr/bin/pmm-admin
/usr/local/percona/pmm2/bin/pmm-admin /usr/sbin/pmm-admin
/usr/local/percona/pmm2/bin/pmm-agent /usr/bin/pmm-agent
/usr/local/percona/pmm2/bin/pmm-agent /usr/sbin/pmm-agent
5 changes: 0 additions & 5 deletions build/packages/deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi

for file in pmm-admin pmm-agent
do
ln -s -f /usr/local/percona/pmm2/bin/$file /usr/bin/$file
ln -s -f /usr/local/percona/pmm2/bin/$file /usr/sbin/$file
done
case "$1" in
configure)
chown -R pmm-agent:pmm-agent /usr/local/percona/pmm2
Expand Down

0 comments on commit 15cd511

Please sign in to comment.