mirror of
https://github.com/MariaDB/server.git
synced 2025-12-28 00:01:00 +00:00
MDEV-36531 Enable Feedback Plugin for DEB Packages
This commit is contained in:
parent
050f683c7d
commit
5d1e485e0a
17
debian/mariadb-server.postinst
vendored
17
debian/mariadb-server.postinst
vendored
@ -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.
|
||||
|
||||
9
debian/mariadb-server.templates
vendored
9
debian/mariadb-server.templates
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user