This should prevent accidental sarge -> lenny upgrades.
# Full upgrade
true first_warning
+true hold_carnet_upgrade
true fix_sarge_sources
true check_my_version
true check_apache_version
# - izvrsi sve uvjetne post_upgrade akcije
true run_post_upgrade
true fix_issue
+true release_carnet_upgrade
# i konacno, provjeri da li stvari rade
true check_services postupgrade
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
+}