Fix mysql upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 31 Jan 2012 11:38:06 +0000 (12:38 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 31 Jan 2012 11:38:06 +0000 (12:38 +0100)
src/actions/main.queue
src/functions.sh

index 39cab95..285ba62 100644 (file)
@@ -34,7 +34,7 @@ pkg amavisd-new                       upgrade_amavis
 pkg apache2-cn                 upgrade_apache2
 pkg postfix-cn                 upgrade_postfix
 pkg bind9-cn                   upgrade_bind
-true                           upgrade_mysql
+pkg mysql-cn                   upgrade_mysql
 true                           upgrade_postgresql
 true                           upgrade first           # neki paketi moraju rucno
 true                           upgrade second          # neke pakete zelimo ranije
index 1d05d1c..c6dbd85 100644 (file)
@@ -907,8 +907,8 @@ upgrade_openldap () {
 upgrade_mysql () {
   if pkg mysql-server || pkg mysql-server-5.0; then
      pkgadd mysql-server
-     pkgrm mysql-server-5.0
-     /etc/init.d/mysql start
+     dpkg -P mysql-server-5.0
+     /etc/init.d/mysql restart
   fi
 }