From 6f16a791600624706880580563bfd764d7562ecf Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 19 Jun 2008 16:06:17 +0200 Subject: [PATCH] Display short installation notice in postinst. --- debian/postinst | 17 ++++++++++------- debian/templates | 17 +++++++++++++++++ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/debian/postinst b/debian/postinst index 6515061..18aba45 100644 --- a/debian/postinst +++ b/debian/postinst @@ -31,13 +31,18 @@ case "$1" in ;; esac -# clear old cached values -if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 4.0; then - if [ -e /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule +if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + + # clear old cached values + if dpkg --compare-versions "$2" lt 4.0; then db_set carnet-upgrade/debconf-priority "" db_set carnet-upgrade/check-services "" - fi + fi + + # display installation notice (since 4.0.3) + db_input high carnet-upgrade/short-instructions || true + db_go fi # dh_installdeb will replace this with shell code automatically @@ -46,5 +51,3 @@ fi #DEBHELPER# exit 0 - - diff --git a/debian/templates b/debian/templates index f9d7c8c..7cd8237 100644 --- a/debian/templates +++ b/debian/templates @@ -5,3 +5,20 @@ Description: for internal use Template: carnet-upgrade/check-services Type: string Description: for internal use + +Template: carnet-upgrade/short-instructions +Type: note +Description: CARNet Debian 4.0 (etch) nadogradnja + Instalirali ste paket carnet-upgrade za nadogradnju sa CARNet Debian + 2.1 (sarge) na CARNet Debian 4.0 (etch). + . + Prije pocetka nadogradnje napravite backup cijelog sustava i + procitajte dokumentaciju u /usr/share/doc/carnet-upgrade/ ili na + webu: http://sistemac.carnet.hr/system/files/carnet-upgrade.pdf + . + Ukoliko niste restartali posluzitelj nakon instalacije kernela, + restartajte ga prije pokretanja nadogradnje. Ukoliko nemate barem + 100 MB slobodnog mjesta na / particiji procitajte upute na webu: + http://sistemac.carnet.hr/node/401 + . + Nadogradnju pokrenite kao root sa 'carnet-upgrade'. -- 1.7.10.4