From 8929aae5514c8ebe04cc45de79b76b3f90e5223b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 25 Jan 2023 15:20:38 +0100 Subject: [PATCH] PHP8 --- conf/cron | 2 +- scripts/_common.sh | 4 +++- scripts/install | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/conf/cron b/conf/cron index c287873..ae494f9 100644 --- a/conf/cron +++ b/conf/cron @@ -1 +1 @@ -*/1 * * * * root /usr/bin/php__PHPVERSION__ __FINALPATH__/front/cron.php &>/dev/null \ No newline at end of file +*/1 * * * * __APP__ /usr/bin/php__PHPVERSION__ __FINALPATH__/front/cron.php &>/dev/null \ No newline at end of file diff --git a/scripts/_common.sh b/scripts/_common.sh index 86fd4fe..c7ade5c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,9 @@ # COMMON VARIABLES #================================================= -php_dependencies="php$YNH_DEFAULT_PHP_VERSION-curl php$YNH_DEFAULT_PHP_VERSION-fileinfo php$YNH_DEFAULT_PHP_VERSION-gd php$YNH_DEFAULT_PHP_VERSION-json php$YNH_DEFAULT_PHP_VERSION-mbstring php$YNH_DEFAULT_PHP_VERSION-mysqli php$YNH_DEFAULT_PHP_VERSION-simplexml php$YNH_DEFAULT_PHP_VERSION-xml php$YNH_DEFAULT_PHP_VERSION-intl php$YNH_DEFAULT_PHP_VERSION-cli php$YNH_DEFAULT_PHP_VERSION-ldap php$YNH_DEFAULT_PHP_VERSION-xmlrpc php$YNH_DEFAULT_PHP_VERSION-bz2 php$YNH_DEFAULT_PHP_VERSION-zip" +YNH_PHP_VERSION=8.0 + +php_dependencies="php$YNH_PHP_VERSION-curl php$YNH_PHP_VERSION-fileinfo php$YNH_PHP_VERSION-gd php$YNH_PHP_VERSION-json php$YNH_PHP_VERSION-mbstring php$YNH_PHP_VERSION-mysqli php$YNH_PHP_VERSION-simplexml php$YNH_PHP_VERSION-xml php$YNH_PHP_VERSION-intl php$YNH_PHP_VERSION-cli php$YNH_PHP_VERSION-ldap php$YNH_PHP_VERSION-xmlrpc php$YNH_PHP_VERSION-bz2 php$YNH_PHP_VERSION-zip" # dependencies used by the app (must be on a single line) pkg_dependencies="$php_dependencies" diff --git a/scripts/install b/scripts/install index 3d009f4..41adeec 100644 --- a/scripts/install +++ b/scripts/install @@ -74,7 +74,6 @@ db_name=$(ynh_sanitize_dbid --db_name=$app) db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name -db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE