1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00
This commit is contained in:
Éric Gaspar 2024-02-15 22:58:00 +01:00
parent 450188b381
commit 8aed7c9306
4 changed files with 3 additions and 10 deletions

View file

@ -7,6 +7,7 @@
# Packages requirements: https://snipe-it.readme.io/docs/requirements
YNH_COMPOSER_VERSION=2.5.8
timezone=$(cat /etc/timezone)
#=================================================

View file

@ -25,13 +25,10 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated PHP-FPM config using the conf/php-fpm.conf or conf/extra_php-fpm.conf
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
# Install composer
ynh_install_composer
#=================================================

View file

@ -14,10 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
#=================================================

View file

@ -49,10 +49,8 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -60,7 +58,6 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Installing Composer..." --weight=15
# Install composer
ynh_install_composer
ynh_exec_warn_less ynh_composer_exec --commands="dump-autoload"