From 8aed7c9306617603ff20c600bb31c061fd0e047b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 15 Feb 2024 22:58:00 +0100 Subject: [PATCH] fix --- scripts/_common.sh | 1 + scripts/install | 5 +---- scripts/remove | 2 -- scripts/upgrade | 5 +---- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 5bb3d64..930a9ea 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,6 +7,7 @@ # Packages requirements: https://snipe-it.readme.io/docs/requirements YNH_COMPOSER_VERSION=2.5.8 + timezone=$(cat /etc/timezone) #================================================= diff --git a/scripts/install b/scripts/install index 2f0efb7..ded25c1 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/remove b/scripts/remove index 46ed076..be13778 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6d65b46..18c0deb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"