diff options
Diffstat (limited to 'debian/additions/debian-start')
-rwxr-xr-x | debian/additions/debian-start | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/additions/debian-start b/debian/additions/debian-start index 7de59ce1fe9..e00684d6c54 100755 --- a/debian/additions/debian-start +++ b/debian/additions/debian-start @@ -1,6 +1,6 @@ #!/bin/bash # -# This script is executed by "/etc/init.d/mysql" on every (re)start. +# This script is executed by "/etc/init.d/mariadb" on every (re)start. # # Changes to this file will be preserved when updating the Debian package. # @@ -9,10 +9,15 @@ source /usr/share/mysql/debian-start.inc.sh +# Read default/mysql first and then default/mariadb just like the init.d file does if [ -f /etc/default/mysql ]; then . /etc/default/mysql fi +if [ -f /etc/default/mariadb ]; then + . /etc/default/mariadb +fi + MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf" MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf" # Don't run full mysql_upgrade on every server restart, use --version-check to do it only once |