diff options
author | joerg@mysql.com <> | 2006-06-27 20:04:44 +0200 |
---|---|---|
committer | joerg@mysql.com <> | 2006-06-27 20:04:44 +0200 |
commit | 3300c79b07136f9059fc0619117cd332d33c6706 (patch) | |
tree | d4cb2aef76f05b29a10e5a9df8b9ee3292b789e3 /support-files | |
parent | 9a9224da681dcbce7cfc34593e5b0c8db44900e2 (diff) | |
parent | 671a1be31bd701202c6ddb48cb4538562780741e (diff) | |
download | mariadb-git-3300c79b07136f9059fc0619117cd332d33c6706.tar.gz |
Merge mysql.com:/M50/bug19353-5.0-2 into mysql.com:/M50/bug20216-5.0
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/mysql.spec.sh | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 92d0708200b..a452811dc91 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -491,11 +491,19 @@ chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir # So ensure the server is isolated as much as possible, and start it so that # passwords are not checked. # See the related change in the start script "/etc/init.d/mysql". -chmod 700 $mysql_datadir -%{_sysconfdir}/init.d/mysql start --skip-networking --skip-grant-tables -%{_bindir}/mysql_upgrade +if type mktemp >/dev/null 2>&1 +then + mysql_tmp_sockdir=`mktemp -dt` +else + PID=$$ + mysql_tmp_sockdir=/tmp/mysql-$PID + ( umask 077 ; mkdir $mysql_tmp_sockdir ) +fi +chown %{mysqld_user}:%{mysqld_group} $mysql_tmp_sockdir +%{_sysconfdir}/init.d/mysql start --skip-networking --skip-grant-tables --socket=$mysql_tmp_sockdir/upgrade.sock +%{_bindir}/mysql_upgrade --socket=$mysql_tmp_sockdir/upgrade.sock %{_sysconfdir}/init.d/mysql stop --skip-networking --skip-grant-tables -chmod 755 $mysql_datadir +rm -fr $mysql_tmp_sockdir # Change permissions again to fix any new files. chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir @@ -733,6 +741,12 @@ fi # itself - note that they must be ordered by date (important when # merging BK trees) %changelog +* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com> + +- Close a gap of the previous version by explicitly using + a newly created temporary directory for the socket to be used + in the "mysql_upgrade" operation, overriding any local setting. + * Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com> - To run "mysql_upgrade", we need a running server; |