1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grr_ynh.git synced 2024-09-03 19:15:56 +02:00
This commit is contained in:
Éric Gaspar 2023-09-26 21:57:46 +02:00
parent f055a1ce92
commit 8adadce339
4 changed files with 6 additions and 23 deletions

View file

@ -18,7 +18,7 @@ userdoc = "https://site.devome.com/fr/grr/telechargement/category/2-informations
code = "https://github.com/JeromeDevome/GRR"
[integration]
yunohost = ">= 11.1.20"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = true
@ -58,7 +58,7 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "mariadb-server php8.2-ldap php8.2-gd php8.2-mbstring php8.2-mysqli php8.2-mysqlnd php8.2-xml"
packages = "mariadb-server, php8.2-ldap, php8.2-gd, php8.2-mbstring, php8.2-mysqli, php8.2-mysqlnd, php8.2-xml"
[resources.database]
type = "mysql"

View file

@ -22,16 +22,11 @@ chown -R $app:www-data "$install_dir"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
ynh_add_nginx_config
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
#=================================================
# SPECIFIC SETUP

View file

@ -12,16 +12,11 @@ source /usr/share/yunohost/helpers
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# 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

View file

@ -38,13 +38,8 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
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
#=================================================
# UPDATE A CONFIG FILE
@ -64,8 +59,6 @@ chown $app:$app "$install_dir/include/connect.inc.php"
#=================================================
ynh_script_progression --message="Updating database..." --weight=1
#REMOVEME? phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
pushd $install_dir/admin
php${phpversion} admin_maj.php ""
popd