MDEV-36531 Enable Feedback Plugin for DEB Packages

This commit is contained in:
Sergei Golubchik 2025-04-27 20:12:28 +02:00
parent 050f683c7d
commit 5d1e485e0a
2 changed files with 26 additions and 0 deletions

View File

@ -242,6 +242,23 @@ EOF
chown 0:0 $dc
chmod 0600 $dc
feedback_cnf=$mariadb_cfgdir/mariadb.conf.d/feedback.cnf
if [ ! -f $feedback_cnf ]; then
if db_input high mariadb-server/feedback_optin; then
db_go || true
fi
db_get mariadb-server/feedback_optin
{
echo "# THIS IS A GENERATED FILE. ALL CHANGES TO IT MIGHT BE LOST.";
echo "[server]";
if [ "$RET" = true ]; then
echo "feedback=ON";
else
echo "feedback=OFF";
fi
} >> $feedback_cnf
fi
# If there is a real AppArmor profile, we reload it.
# If the default empty profile is installed, then we remove any old
# profile that may be loaded.

View File

@ -43,3 +43,12 @@ _Description: Remove all MariaDB databases?
If you're removing the MariaDB package in order to later install a more
recent version or if a different mariadb-server package is already
using it, the data should be kept.
Template: mariadb-server/feedback_optin
Type: boolean
Default: false
_Description: Enable the Feedback plugin and submit anonymous usage information?
Feedback plugin collects basic anonymous statistical information that can be
used by the developers to improve MariaDB. This is an easy way to help with
MariaDB development. Collected statistics can be viewed at
http://mariadb.org/feedback-plugin