From 8d080f3c6bfc82afc884caaca883a3e060fd0e46 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 18 Feb 2022 00:42:48 +0100 Subject: [PATCH] Upgrade to PHP8.0 --- scripts/_common.sh | 6 +++++- scripts/upgrade | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 71ceb03..ebde0ed 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,11 @@ # COMMON VARIABLES #================================================= -pkg_dependencies="curl php${YNH_PHP_VERSION}-gd php-php-gettext php${YNH_PHP_VERSION}-imap php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-apcu php${YNH_PHP_VERSION}-curl" +YNH_PHP_VERSION="8.0" + +pkg_dependencies="curl php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-gd php-php-gettext php${YNH_PHP_VERSION}-imap php${YNH_PHP_VERSION}-fpm php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-curl" + +# php${YNH_PHP_VERSION}-apcu #================================================= # PERSONAL HELPERS diff --git a/scripts/upgrade b/scripts/upgrade index 6f5593f..235608b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -177,6 +177,15 @@ then ynh_secure_remove --file="$final_path/setup" fi +#================================================= +# UPGRADE OSTICKET +#================================================= +ynh_script_progression --message="Upgrading the application..." + +pushd "$final_path" + php$phpversion manage.php upgrade +popd + #================================================= # SET THE CRON FILE #=================================================