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 #=================================================