Hold carnet-upgrade until the upgrade finishes.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 26 Aug 2009 11:23:17 +0000 (13:23 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 26 Aug 2009 11:23:17 +0000 (13:23 +0200)
src/actions/main.queue
src/functions.sh

index 572eb9a..98574fb 100644 (file)
@@ -1,6 +1,7 @@
 # Full upgrade
 true                           first_warning
 true                           check_my_version
+true                           hold_carnet_upgrade
 true                           check_php_version
 true                           check_upgrade
 true                           check_grsec_kernel
@@ -59,5 +60,6 @@ true                          run_post_upgrade
 true                           apt_listchanges enable
 true                           debconf_priority reset
 true                           fix_issue
+true                           release_carnet_upgrade
 # i konacno, provjeri da li stvari rade
 true                           check_services postupgrade
index 09b5479..5ec3d81 100644 (file)
@@ -1376,3 +1376,12 @@ round() {
 
   echo $num
 }
+
+# make sure carnet-upgrade doesn't get upgraded until the end
+hold_carnet_upgrade() {
+  echo carnet-upgrade hold | dpkg --set-selections
+}
+
+release_carnet_upgrade() {
+  echo carnet-upgrade install | dpkg --set-selections
+}