diff --git a/manifest.toml b/manifest.toml index d32fb3c..af27846 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Tiny File Manager" description.en = "Web based file manager" description.fr = "Gestionnaire de fichiers simple" -version = "2.5.3~ynh1" +version = "2.5.3~ynh2" maintainers = ["Jarod5001"] @@ -18,7 +18,7 @@ userdoc = "https://github.com/prasathmani/tinyfilemanager" code = "https://github.com/prasathmani/tinyfilemanager" [integration] -yunohost = ">= 11.1.13" +yunohost = ">= 11.2" architectures = "all" multi_instance = true ldap = false @@ -35,6 +35,10 @@ ram.runtime = "50M" type = "path" default = "/tinyfilemanager" + [install.init_main_permission] + type = "group" + default = "visitors" + [resources] [resources.sources.main] url = "https://github.com/prasathmani/tinyfilemanager/archive/refs/tags/2.5.3.tar.gz" @@ -51,4 +55,4 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "php8.0-xml php8.0-cli php8.0-iconv php8.0-bz2 php8.0-zip php8.0-fileinfo php8.0-mbstring" + packages = "php8.0-xml, php8.0-cli, php8.0-iconv, php8.0-bz2, php8.0-zip, php8.0-fileinfo, php8.0-mbstring" diff --git a/scripts/install b/scripts/install index 58bc147..300cd90 100755 --- a/scripts/install +++ b/scripts/install @@ -36,12 +36,7 @@ mv $install_dir/tinyfilemanager.php $install_dir/index.php ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 # Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low - -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 +ynh_add_fpm_config # Create a dedicated NGINX config ynh_add_nginx_config diff --git a/scripts/remove b/scripts/remove index 79cb058..61db822 100755 --- a/scripts/remove +++ b/scripts/remove @@ -17,11 +17,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." -- # Remove the dedicated NGINX config ynh_remove_nginx_config -#================================================= -# REMOVE PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=1 - # Remove the dedicated PHP-FPM config ynh_remove_fpm_config diff --git a/scripts/restore b/scripts/restore index c89eb4f..ab3393f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -36,11 +36,6 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -#================================================= -# RESTORE THE NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 - ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index dacb559..13b42a6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,7 +42,7 @@ chown -R $app:www-data "$install_dir" ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config #================================================= # NGINX CONFIGURATION