mirror of
https://github.com/YunoHost-Apps/ifm_ynh.git
synced 2024-09-03 18:45:52 +02:00
commit
e2bfd8ee9d
7 changed files with 15 additions and 27 deletions
|
@ -30,7 +30,7 @@ The IFM is a web-based filemanager, which comes as a single file solution using
|
||||||
- simple authentication (LDAP via `ldap_bind` possible)
|
- simple authentication (LDAP via `ldap_bind` possible)
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 4.0.2~ynh1
|
**Shipped version:** 4.0.2~ynh2
|
||||||
|
|
||||||
**Demo:** https://ifmdemo.gitea.de/
|
**Demo:** https://ifmdemo.gitea.de/
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ L'IFM est un gestionnaire de fichiers basé sur le Web, qui se présente sous la
|
||||||
- aperçu de l'image
|
- aperçu de l'image
|
||||||
- authentification simple (LDAP via `ldap_bind` possible)
|
- authentification simple (LDAP via `ldap_bind` possible)
|
||||||
|
|
||||||
**Version incluse :** 4.0.2~ynh1
|
**Version incluse :** 4.0.2~ynh2
|
||||||
|
|
||||||
**Démo :** https://ifmdemo.gitea.de/
|
**Démo :** https://ifmdemo.gitea.de/
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "IFM"
|
||||||
description.en = "Improved File Manager"
|
description.en = "Improved File Manager"
|
||||||
description.fr = "Gestionnaire de fichiers amélioré"
|
description.fr = "Gestionnaire de fichiers amélioré"
|
||||||
|
|
||||||
version = "4.0.2~ynh1"
|
version = "4.0.2~ynh2"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
@ -40,9 +40,12 @@ ram.runtime = "50M"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
#[resources.sources.main]
|
[resources.sources.main]
|
||||||
#url = "https://github.com/misterunknown/ifm/releases/download/v4.0.0/ifm.php"
|
in_subdir = false
|
||||||
#sha256 = "59a888e454a083a420c074e303507e0efd41fb10272f52860c8e6d9cc640aea4"
|
extract = false
|
||||||
|
url = "https://github.com/misterunknown/ifm/releases/download/v4.0.2/ifm.php"
|
||||||
|
sha256 = "902e45ef45a5a2c1fc8a1186f1acf3f4588071791e4bc8175de067eb33070594"
|
||||||
|
rename = "ifm.php"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
@ -55,5 +58,5 @@ ram.runtime = "50M"
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
|
|
||||||
packages = "php8.0-zip, php8.0-curl, php8.0-mbstring, php8.0-ldap, php8.0-json, php8.0-xml"
|
packages = "php8.2-zip, php8.2-curl, php8.2-mbstring, php8.2-ldap, php8.2-xml"
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,7 @@ ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=3
|
ynh_script_progression --message="Setting up source files..." --weight=3
|
||||||
|
|
||||||
#ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
mkdir -p $install_dir
|
|
||||||
mv "../sources/ifm.php" "$install_dir/ifm.php"
|
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
|
@ -17,11 +17,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_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
|
# Remove the dedicated PHP-FPM config
|
||||||
ynh_remove_fpm_config
|
ynh_remove_fpm_config
|
||||||
|
|
||||||
|
|
|
@ -10,15 +10,6 @@
|
||||||
source ../settings/scripts/_common.sh
|
source ../settings/scripts/_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STANDARD RESTORATION STEPS
|
|
||||||
#=================================================
|
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE APP MAIN DIR
|
# RESTORE THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -45,6 +36,8 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -46,7 +46,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=2
|
ynh_script_progression --message="Upgrading source files..." --weight=2
|
||||||
|
|
||||||
mv -f "../sources/ifm.php" "$install_dir/ifm.php"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
@ -58,7 +58,7 @@ chown -R $app:www-data "$install_dir"
|
||||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
Loading…
Reference in a new issue