From: Valentin Vidic Date: Thu, 19 Jun 2008 14:06:17 +0000 (+0200) Subject: Display short installation notice in postinst. X-Git-Tag: debian/4.0.3~4 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=6f16a791600624706880580563bfd764d7562ecf;p=carnet-upgrade.git Display short installation notice in postinst. --- 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'.