X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=d7f2e202274592cd33b39da0f7909c2cbf01a066;hb=8a2a6fa288b2d869896b989632059c11ce977e48;hp=3825a4c2c96cc95bc451364311c614f85630f678;hpb=5fe31b9531df1ee2f0b14881b126b33929eb5601;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 3825a4c..d7f2e20 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -2,8 +2,10 @@ # Zoran 'jelly' Dzelajlija # Zeljko Boros -PHPVER="7.3" -MDB="10.3" +PHPVER="7.4" +MDB="10.5" +PINFILE="/etc/apt/preferences.d/99-carnet" + notice () { LC_MESSAGES=hr_HR dialog --backtitle "$title" --msgbox "$*" 18 75 @@ -17,6 +19,14 @@ first_warning () { fi } +second_warning () { + LC_MESSAGES=hr_HR dialog --backtitle "$title" --yesno "$msg_second_warning" 18 75 + if [ $? -ne 0 ]; then + log "Upgrade canceled." + exit 0 + fi +} + pkg() { local version dpkg -l "$1" 2> /dev/null | egrep -q "^.i" || return 1 @@ -342,7 +352,7 @@ Doslo je do greske prilikom izvrsavanja akcije '$action'. Detalje problema moguc Da bi dovrsili zapocete operacije nad paketima pokrenite: # dpkg --configure -a - # apt-get -f install + # apt -f install Nakon toga ponovno pozovite carnet-upgrade skriptu." } @@ -371,7 +381,7 @@ check_upgrade () { if [ "$upgrade" ]; then notice " -Prije prelaska na Debian stretch potrebno je napraviti nadogradnju ovih paketa: +Prije prelaska na Debian bullseye potrebno je napraviti nadogradnju ovih paketa: $upgrade Pokrenite: @@ -947,11 +957,11 @@ upgrade_postfix () { fix_bacula() { echo "CN: Dodajem pinning bacule na inačicu 7.4.4..." - PINFILE=/etc/apt/preferences.d/99-carnet test -f $PINFILE || touch $PINFILE cp-update bacula-cn $PINFILE < /dev/null 2>&1 } # restore munin configs for silent upgrade