@@ -185,13 +185,27 @@ EOF
185
185
# And while it's not needed for new installations, we keep using
186
186
# --defaults-file option for tools (for the sake of upgrades)
187
187
# and thus need /etc/mysql/debian.cnf to exist, even if it's empty.
188
+ # In the long run the goal is to obsolete this file.
188
189
dc=$mysql_cfgdir /debian.cnf;
189
190
if [ ! -d " $mysql_cfgdir " ]; then
190
191
install -o 0 -g 0 -m 0755 -d $mysql_cfgdir
191
192
fi
192
193
if [ ! -e " $dc " ]; then
193
194
cat /dev/null > $dc
194
- echo " # Automatically generated for Debian scripts. DO NOT TOUCH!" >> $dc
195
+ echo " # THIS FILE IS OBSOLETE. STOP USING IT IF POSSIBLE." >> $dc
196
+ echo " # This file exists only for backwards compatibility for" >> $dc
197
+ echo " # tools that run '--defaults-file=/etc/mysql/debian.cnf'" >> $dc
198
+ echo " # and have root level access to the local filesystem." >> $dc
199
+ echo " # With those permissions one can run 'mariadb' directly" >> $dc
200
+ echo " # anyway thanks to unix socket authentication and hence" >> $dc
201
+ echo " # this file is useless. See package README for more info." >> $dc
202
+ echo " [client]" >> $dc
203
+ echo " host = localhost" >> $dc
204
+ echo " user = root" >> $dc
205
+ echo " [mysql_upgrade]" >> $dc
206
+ echo " host = localhost" >> $dc
207
+ echo " user = root" >> $dc
208
+ echo " # THIS FILE WILL BE REMOVED IN A FUTURE DEBIAN RELEASE." >> $dc
195
209
fi
196
210
# Keep it only root-readable, as it always was
197
211
chown 0:0 $dc
0 commit comments