From: Elan Ruusamäe Date: Thu, 10 Mar 2011 17:55:53 +0000 (+0000) Subject: - restore banner X-Git-Tag: auto/th/mysql-5_5_9-6~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=1564ef079993475741fab380ec11aa8f079703f1;p=packages%2Fmysql.git - restore banner Changed files: mysql.spec -> 1.536 --- diff --git a/mysql.spec b/mysql.spec index 7b81cfe..aff35d2 100644 --- a/mysql.spec +++ b/mysql.spec @@ -904,16 +904,20 @@ for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do configs="$configs $config_file" done +( echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.' echo 'Thus, you should invoke:' for config in $configs; do sed -i -e ' s/set-variable\s*=\s* // + # use # as comment in config + s/^;/#/ ' $config datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs) echo "# mysql_upgrade --datadir=$datadir" done +) | %banner -e %{name}-5.1 %triggerpostun -- mysql < 5.5.0 configs="" @@ -939,6 +943,9 @@ for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do configs="$configs $config_file" done +( +echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.' +echo 'Thus, you should invoke:' for config in $configs; do sed -i -e ' s/^language *= *polish/lc-messages = pl_PL/i @@ -946,8 +953,14 @@ for config in $configs; do /^skip-locking/skip-external-locking/ # this is not valid for server. it is client option s/default-character-set/# client-config: &/ + # use # as comment in config + s/^;/#/ ' $config + + datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs) + echo "# mysql_upgrade --datadir=$datadir" done +) | %banner -e %{name}-5.5 %files %defattr(644,root,root,755)