Skip to content

Commit e596aa4

Browse files
committed
MDEV-36531 Enable Feedback Plugin for DEB Packages
1 parent ad5241a commit e596aa4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

debian/mariadb-server.postinst

+17
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,23 @@ EOF
242242
chown 0:0 $dc
243243
chmod 0600 $dc
244244

245+
feedback_cnf=$mariadb_cfgdir/mariadb.conf.d/feedback.cnf
246+
if [ ! -f $feedback_cnf ]; then
247+
if db_input high mariadb-server/feedback_optin; then
248+
db_go || true
249+
fi
250+
db_get mariadb-server/feedback_optin
251+
{
252+
echo "# THIS IS A GENERATED FILE. ALL CHANGES TO IT MIGHT BE LOST.";
253+
echo "[server]";
254+
if [ "$RET" = true ]; then
255+
echo "feedback=ON";
256+
else
257+
echo "feedback=OFF";
258+
fi
259+
} >> $feedback_cnf
260+
fi
261+
245262
# If there is a real AppArmor profile, we reload it.
246263
# If the default empty profile is installed, then we remove any old
247264
# profile that may be loaded.

debian/mariadb-server.templates

+10
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@ _Description: Remove all MariaDB databases?
4343
If you're removing the MariaDB package in order to later install a more
4444
recent version or if a different mariadb-server package is already
4545
using it, the data should be kept.
46+
47+
Template: mariadb-server/feedback_optin
48+
Type: boolean
49+
Default: false
50+
_Description: Enable the Feedback plugin and submit anonymous usage information?
51+
Feedback plugin for MariaDB, if enabled, collects basic anonymous
52+
statistical information. This information is used by the developers to
53+
improve MariaDB. Enabling this plugin is an easy way to help with MariaDB
54+
development. Collected statistics, and more information on the plugin,
55+
can be viewed at http://mariadb.org/feedback_plugin

0 commit comments

Comments
 (0)