Manual kernel upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 29 Oct 2013 12:19:10 +0000 (13:19 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 29 Oct 2013 12:19:10 +0000 (13:19 +0100)
src/actions/main.queue
src/data.sh
src/functions.sh

index 21b2e58..fc49cf1 100644 (file)
@@ -37,6 +37,7 @@ pkg dovecot-cn                        upgrade_dovecot
 pkg bind9-cn                   upgrade_bind
 pkg fail2ban-cn                        upgrade_fail2ban
 pkg mailman-cn                 upgrade_mailman
+pkg kernel-2.6-cn              upgrade_kernel
 true                           upgrade_postgresql
 true                           upgrade first           # neki paketi moraju rucno
 true                           upgrade second          # neke pakete zelimo ranije
index a767f56..9c6c170 100644 (file)
@@ -55,7 +55,7 @@ clamav-cn clamav-daemon
 dovecot-cn
 freeradius-aai freeradius
 isc-dhcp-client
-kernel-2.6-cn kernel-cn
+kernel-cn
 monit-cn
 munin-cn
 mysql-cn mysql-client mysql-server
index ce1aef8..d9c9734 100644 (file)
@@ -981,6 +981,14 @@ upgrade_mailman() {
   fi
 }
 
+# manual upgrade of kernel due to new packet name
+upgrade_kernel() {
+  if pkg kernel-2.6-cn; then
+    pkgrm kernel-2.6-cn
+    pkgadd kernel-cn
+  fi
+}
+
 get_variable () {
   local name=$1 file=$2 val