# Zoran 'jelly' Dzelajlija <jelly@srce.hr>
# Zeljko Boros <zelja@carnet.hr>
+PHPVER="7.3"
+MDB="10.3"
+
notice () {
LC_MESSAGES=hr_HR dialog --backtitle "$title" --msgbox "$*" 18 75
}
fi
}
-# upgrade apache2/pthp5
+# upgrade apache2/php
upgrade_apache2 () {
- pkgrm apache-common # prevents installation of apache2-suexec
- pkgupgrade libapache2-mod-php7.0 php7.0-cli php7.0-cn apache2-cn \
- php7.0-odbc mod-security-cn
+### ne treba od etcha
+### pkgrm apache-common # prevents installation of apache2-suexec
+ pkgupgrade libapache2-mod-php$PHPVER php$PHPVER-cli php$PHPVER-cn apache2-cn \
+ php$PHPVER-odbc mod-security-cn
}
upgrade_amavis () {
# handle mysql upgrade
upgrade_mysql () {
if pkg mysql-server || pkg mysql-server-5.5 || \
- pkg mariadb-server || pkg mariadb-server-10.0
+ pkg mariadb-server || pkg mariadb-server-$MDB
then
pkgadd default-mysql-server
- dpkg -P mysql-server mysql-server-5.5 mariadb-server-10.0
+ dpkg -P mysql-server mysql-server-5.5 mariadb-server-$MDB
service mysql restart
fi
}