From 62570336ff4a368ae1b9de58f08d94a0da99f14c Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Wed, 26 Aug 2009 13:23:17 +0200 Subject: [PATCH] Hold carnet-upgrade until the upgrade finishes. --- src/actions/main.queue | 2 ++ src/functions.sh | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/actions/main.queue b/src/actions/main.queue index 572eb9a..98574fb 100644 --- a/src/actions/main.queue +++ b/src/actions/main.queue @@ -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 diff --git a/src/functions.sh b/src/functions.sh index 09b5479..5ec3d81 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -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 +} -- 1.7.10.4