Skip to content

Commit

Permalink
PS-9317 chgrp and chmod errors during PS package installation with PE…
Browse files Browse the repository at this point in the history
…RCONA_TELEMETRY_DISABLE=1
  • Loading branch information
surbhat1595 committed Jul 19, 2024
1 parent e3b0a41 commit 14337bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build-ps/percona-server-8.0_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,8 @@ build_deb(){
cat call-home.sh >> percona-server-server"${postfix}".postinst
echo "CALLHOME" >> percona-server-server"${postfix}".postinst
echo "bash +x /tmp/call-home.sh -f \"PRODUCT_FAMILY_PS\" -v \"${VERSION}-${RELEASE}-${DEB_RELEASE}\" -d \"PACKAGE\" &>/dev/null || :" >> percona-server-server"${postfix}".postinst
echo "chgrp percona-telemetry /usr/local/percona/telemetry_uuid" >> percona-server-server"${postfix}".postinst
echo "chmod 664 /usr/local/percona/telemetry_uuid" >> percona-server-server"${postfix}".postinst
echo "chgrp percona-telemetry /usr/local/percona/telemetry_uuid &>/dev/null || :" >> percona-server-server"${postfix}".postinst
echo "chmod 664 /usr/local/percona/telemetry_uuid &>/dev/null || :" >> percona-server-server"${postfix}".postinst
echo "rm -rf /tmp/call-home.sh" >> percona-server-server"${postfix}".postinst
echo "exit 0" >> percona-server-server"${postfix}".postinst
rm -f call-home.sh
Expand Down
4 changes: 2 additions & 2 deletions build-ps/percona-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ fi

cp %SOURCE999 /tmp/ 2>/dev/null ||
bash /tmp/call-home.sh -f "PRODUCT_FAMILY_PS" -v %{mysql_version}-%{percona_server_version}-%{rpm_release} -d "PACKAGE" &>/dev/null || :
chgrp percona-telemetry /usr/local/percona/telemetry_uuid
chmod 664 /usr/local/percona/telemetry_uuid
chgrp percona-telemetry /usr/local/percona/telemetry_uuid &>/dev/null || :
chmod 664 /usr/local/percona/telemetry_uuid &>/dev/null || :
rm -f /tmp/call-home.sh

echo "Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit."
Expand Down

0 comments on commit 14337bb

Please sign in to comment.