1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cultivons_ynh.git synced 2024-09-03 18:16:27 +02:00

Merge pull request #8 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-11-12 21:33:45 +01:00 committed by GitHub
commit 89e5a87665
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 11 deletions

View file

@ -40,7 +40,7 @@ With __cultivons!__, you can manage
- https://linuxfr.org/users/xulops/journaux/cultivons-logiciel-de-gestion-de-bad - https://linuxfr.org/users/xulops/journaux/cultivons-logiciel-de-gestion-de-bad
**Shipped version:** 1.8~ynh2 **Shipped version:** 1.9~ynh1
**Demo:** https://cultivons-demo.xulops.net **Demo:** https://cultivons-demo.xulops.net

View file

@ -41,7 +41,7 @@ Avec __Cultivons!__, vous pouvez gérer
- https://linuxfr.org/users/xulops/journaux/cultivons-logiciel-de-gestion-de-bad - https://linuxfr.org/users/xulops/journaux/cultivons-logiciel-de-gestion-de-bad
**Version incluse :** 1.8~ynh2 **Version incluse :** 1.9~ynh1
**Démo :** https://cultivons-demo.xulops.net **Démo :** https://cultivons-demo.xulops.net

View file

@ -2,3 +2,4 @@
php_admin_value[upload_max_filesize] = 50M php_admin_value[upload_max_filesize] = 50M
php_admin_value[post_max_size] = 50M php_admin_value[post_max_size] = 50M
php_value[short_open_tag] = On

View file

@ -5,7 +5,7 @@ name = "Cultivons"
description.en = "Sustainable Autonomous Base Manager" description.en = "Sustainable Autonomous Base Manager"
description.fr = "Gestionnaire de Base Autonome Durable" description.fr = "Gestionnaire de Base Autonome Durable"
version = "1.8~ynh2" version = "1.9~ynh1"
maintainers = ["Pierre Levasseur"] maintainers = ["Pierre Levasseur"]
@ -21,8 +21,11 @@ code = "https://xulops.net/forge/cultivons.php?menu=download"
yunohost = ">= 11.2" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "50M" ram.build = "50M"
ram.runtime = "50M" ram.runtime = "50M"
@ -39,10 +42,10 @@ ram.runtime = "50M"
[resources] [resources]
[resources.sources.main] [resources.sources.main]
url = "https://xulops.net/forge/cultivons.php?f=download&pk=43&v=266a047613f488f2bc0bac772667ac27" url = "https://xulops.net/forge/cultivons.php?f=download&pk=53&v=9d9f29f852f64b680662ac25d08117f8"
sha256 = "2834a0b744eaf9318c5d85a10eecd52ab4553a47268f7c0ddfc89dc8089e0589" sha256 = "197b76cefb3ac60f8abdac313cd9162d87d4c1e6d3b882741a8d5730ed66631c"
extract = true extract = true
in_subdir = true in_subdir = false
format = "zip" format = "zip"
[resources.system_user] [resources.system_user]

View file

@ -21,9 +21,9 @@ chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
#================================================= #=================================================
# PHP-FPM CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Configuring PHP-FPM..." --weight=3 ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config ynh_add_fpm_config

View file

@ -10,9 +10,11 @@ source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================
# REMOVE LOGROTATE CONFIGURATION # REMOVE SYSTEM CONFIGURATIONS
#================================================= #=================================================
ynh_script_progression --message="Removing logrotate configuration..." --weight=1 # REMOVE SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the app-specific logrotate config # Remove the app-specific logrotate config
ynh_remove_logrotate ynh_remove_logrotate

View file

@ -20,10 +20,13 @@ ynh_restore_file --origin_path="$install_dir"
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"
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1 ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
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"