mirror of
https://github.com/YunoHost-Apps/cultivons_ynh.git
synced 2024-09-03 18:16:27 +02:00
commit
89e5a87665
7 changed files with 20 additions and 11 deletions
|
@ -40,7 +40,7 @@ With __cultivons!__, you can manage
|
|||
- 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
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ Avec __Cultivons!__, vous pouvez gérer
|
|||
- 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
|
||||
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
php_admin_value[upload_max_filesize] = 50M
|
||||
php_admin_value[post_max_size] = 50M
|
||||
php_value[short_open_tag] = On
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Cultivons"
|
|||
description.en = "Sustainable Autonomous Base Manager"
|
||||
description.fr = "Gestionnaire de Base Autonome Durable"
|
||||
|
||||
version = "1.8~ynh2"
|
||||
version = "1.9~ynh1"
|
||||
|
||||
maintainers = ["Pierre Levasseur"]
|
||||
|
||||
|
@ -21,8 +21,11 @@ code = "https://xulops.net/forge/cultivons.php?menu=download"
|
|||
yunohost = ">= 11.2"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
|
||||
ldap = false
|
||||
|
||||
sso = false
|
||||
|
||||
disk = "50M"
|
||||
ram.build = "50M"
|
||||
ram.runtime = "50M"
|
||||
|
@ -39,10 +42,10 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://xulops.net/forge/cultivons.php?f=download&pk=43&v=266a047613f488f2bc0bac772667ac27"
|
||||
sha256 = "2834a0b744eaf9318c5d85a10eecd52ab4553a47268f7c0ddfc89dc8089e0589"
|
||||
url = "https://xulops.net/forge/cultivons.php?f=download&pk=53&v=9d9f29f852f64b680662ac25d08117f8"
|
||||
sha256 = "197b76cefb3ac60f8abdac313cd9162d87d4c1e6d3b882741a8d5730ed66631c"
|
||||
extract = true
|
||||
in_subdir = true
|
||||
in_subdir = false
|
||||
format = "zip"
|
||||
|
||||
[resources.system_user]
|
||||
|
|
|
@ -21,9 +21,9 @@ chmod -R o-rwx "$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
|
||||
ynh_add_fpm_config
|
||||
|
|
|
@ -10,9 +10,11 @@ source _common.sh
|
|||
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
|
||||
ynh_remove_logrotate
|
||||
|
|
|
@ -20,10 +20,13 @@ ynh_restore_file --origin_path="$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
# 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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue