]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- restore banner
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 10 Mar 2011 17:55:53 +0000 (17:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.spec -> 1.536

mysql.spec

index 7b81cfe32294d13889ac9bc7dab3f347077870b7..aff35d25211ce25c8f123137f480349cc42dd141 100644 (file)
@@ -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)
This page took 0.130596 seconds and 4 git commands to generate.