From bf6e2a53d68e0eb92c170a04747cc18c28df84d5 Mon Sep 17 00:00:00 2001
From: Valentin Vidic
+ Prije nadogradnje na lenny, potrebno je izvršiti
+ prijelaz sa PHP inaÄice 4 na PHP 5. Ukoliko je na
+ sustavu joÅ¡ uvijek instaliran PHP 4 pojavit Äe se
+ poruka:
+
+
U sljedeÄem koraku biti Äe izvrÅ¡ena provjera dali su najvažniji servisi nadograÄeni na najnovije inaÄice u etch diff --git a/src/actions/main.queue b/src/actions/main.queue index 4dc3cfd..b9746a0 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 check_php_version true check_upgrade true check_grsec_kernel true check_reboot diff --git a/src/functions.sh b/src/functions.sh index 1524f96..ff90033 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -447,19 +447,19 @@ check_my_version () { rm -f $packages } -# if apache is installed make sure it's version 2 -check_apache_version () { +# if php is installed make sure it's version 5 +check_php_version () { - if pkg apache-cn && ! pkg apache2-cn; then + if pkg php4-cn && ! pkg php5-cn; then notice " -Prije prelaska na Debian Etch potrebno je napraviti nadogradnju sa Apache 1.3 na Apache 2.0. +Prije prelaska na Debian Etch potrebno je napraviti nadogradnju sa PHP 4 na PHP 5. Pokrenite: # apt-get update - # apt-get install apache2-cn + # apt-get install php5-cn -Nakon toga ponovno pozovite ovu skriptu." - log "carnet-upgrade aborted, upgrade to apache2-cn needed." +Nakon sto provjerite da sve web aplikacije rade ispravno, ponovno pozovite ovu skriptu." + log "carnet-upgrade aborted, upgrade to php5-cn needed." exit 1 fi } -- 1.7.10.4