From 3cda72ec96ecfc6e8875247aed0efc69c4b14adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 18 Jan 2024 21:23:28 +0100 Subject: [PATCH] fix --- doc/ADMIN_fr.md | 2 +- manifest.toml | 2 +- scripts/install | 7 ++----- scripts/remove | 2 -- scripts/restore | 2 +- scripts/upgrade | 5 +---- 6 files changed, 6 insertions(+), 14 deletions(-) diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index 464b3a0..c356563 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -1,3 +1,3 @@ ## Dépannage -Si vous rencontrez des problèmes, utilisez le test d'installation pour vérifier votre environnement. Invoquez ce test en accédant à `http://domain.ltd/bbs/installcheck.php`. Ce test vérifie les problèmes rencontrés par les utilisateurs dans le passé. \ No newline at end of file +Si vous rencontrez des problèmes, utilisez le test d'installation pour vérifier votre environnement. Invoquez ce test en accédant à `__DOMAIN__/bbs/installcheck.php`. Ce test vérifie les problèmes rencontrés par les utilisateurs dans le passé. \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index 26e69e8..d6d03bb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -52,4 +52,4 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "php8.2-gd, php8.2-intl, php8.2-xml, php8.2-sqlite3, php8.2-mbstring, php8.2-mcrypt" + packages = "php7.3-gd, php7.3-intl, php7.3-xml, php7.3-sqlite3, php7.3-mbstring, php7.3-mcrypt" diff --git a/scripts/install b/scripts/install index 9e6cb40..9f2e929 100644 --- a/scripts/install +++ b/scripts/install @@ -14,23 +14,20 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Setting up source files..." --weight=7 -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -#chmod -R ga+w "$install_dir/data" +chmod -R ga+w "$install_dir/data" #================================================= # NGINX CONFIGURATION #================================================= ynh_script_progression --message="Configuring NGINX web server..." --weight=2 -# Create a dedicated NGINX config ynh_add_nginx_config -# Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config #================================================= # END OF SCRIPT diff --git a/scripts/remove b/scripts/remove index 61db822..ac762c0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -14,10 +14,8 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 -# Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove the dedicated PHP-FPM config ynh_remove_fpm_config #================================================= diff --git a/scripts/restore b/scripts/restore index c717bff..2e8ce44 100644 --- a/scripts/restore +++ b/scripts/restore @@ -23,7 +23,7 @@ chmod -R ga+w "$install_dir/data" #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=50 +ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=5 ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" diff --git a/scripts/upgrade b/scripts/upgrade index 61f92d1..bd7ec19 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,7 +25,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=7 - # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" fi @@ -38,11 +37,9 @@ chmod -R ga+w "$install_dir/data" #================================================= ynh_script_progression --message="Configuring NGINX web server..." --weight=2 -# Create a dedicated NGINX config ynh_add_nginx_config -# Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config #================================================= # END OF SCRIPT