mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
php8.0
This commit is contained in:
parent
0e2314d756
commit
c8dac30967
4 changed files with 11 additions and 11 deletions
|
@ -5,7 +5,7 @@ define("PG_PATH","/usr/bin");
|
||||||
define("PG_RESTORE","/usr/bin/pg_restore ");
|
define("PG_RESTORE","/usr/bin/pg_restore ");
|
||||||
define("PG_DUMP","/usr/bin/pg_dump ");
|
define("PG_DUMP","/usr/bin/pg_dump ");
|
||||||
define ("PSQL","/usr/bin/psql");
|
define ("PSQL","/usr/bin/psql");
|
||||||
define ("noalyss_user","__DB_NAME__");
|
define ("noalyss_user","__DB_USER__");
|
||||||
define ("noalyss_password","__DB_PWD__");
|
define ("noalyss_password","__DB_PWD__");
|
||||||
define ("noalyss_psql_port","5432");
|
define ("noalyss_psql_port","5432");
|
||||||
define ("noalyss_psql_host","localhost");
|
define ("noalyss_psql_host","localhost");
|
||||||
|
@ -18,7 +18,7 @@ define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__");
|
||||||
define ("LOCALE",1);
|
define ("LOCALE",1);
|
||||||
define ("domaine","");
|
define ("domaine","");
|
||||||
define ("MULTI",1);
|
define ("MULTI",1);
|
||||||
define ("dbname","");
|
define ("dbname","__DB_NAME__");
|
||||||
// Uncomment to DEBUG
|
// Uncomment to DEBUG
|
||||||
// define ("DEBUG",TRUE);
|
// define ("DEBUG",TRUE);
|
||||||
// Uncomment to log your input
|
// Uncomment to log your input
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"php7.3-fpm"
|
"php8.0-fpm"
|
||||||
],
|
],
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install" : [
|
"install" : [
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
YNH_PHP_VERSION="7.3"
|
YNH_PHP_VERSION="8.0"
|
||||||
|
|
||||||
pkg_dependencies="postgresql apt-transport-https libgd-dev php${YNH_PHP_VERSION}-pgsql php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-gd php-php-gettext"
|
pkg_dependencies="postgresql apt-transport-https libgd-dev php${YNH_PHP_VERSION}-pgsql php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-gd php-php-gettext"
|
||||||
|
|
||||||
|
|
|
@ -64,13 +64,6 @@ chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring PHP-FPM configuration..."
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -81,6 +74,13 @@ ynh_script_progression --message="Reinstalling dependencies..."
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring PHP-FPM configuration..."
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE POSTGRESQL DATABASE
|
# RESTORE THE POSTGRESQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue