1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
This commit is contained in:
ericgaspar 2022-04-14 08:49:07 +02:00
parent 0e2314d756
commit c8dac30967
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 11 additions and 11 deletions

View file

@ -5,7 +5,7 @@ define("PG_PATH","/usr/bin");
define("PG_RESTORE","/usr/bin/pg_restore ");
define("PG_DUMP","/usr/bin/pg_dump ");
define ("PSQL","/usr/bin/psql");
define ("noalyss_user","__DB_NAME__");
define ("noalyss_user","__DB_USER__");
define ("noalyss_password","__DB_PWD__");
define ("noalyss_psql_port","5432");
define ("noalyss_psql_host","localhost");
@ -18,7 +18,7 @@ define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__");
define ("LOCALE",1);
define ("domaine","");
define ("MULTI",1);
define ("dbname","");
define ("dbname","__DB_NAME__");
// Uncomment to DEBUG
// define ("DEBUG",TRUE);
// Uncomment to log your input

View file

@ -26,7 +26,7 @@
"multi_instance": false,
"services": [
"nginx",
"php7.3-fpm"
"php8.0-fpm"
],
"arguments": {
"install" : [

View file

@ -3,7 +3,7 @@
# 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"

View file

@ -64,13 +64,6 @@ chmod 750 "$final_path"
chmod -R o-rwx "$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
#=================================================
@ -81,6 +74,13 @@ ynh_script_progression --message="Reinstalling dependencies..."
# Define and install 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
#=================================================