1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
Éric Gaspar 2024-06-17 10:40:30 +02:00
parent 275261aa71
commit d62159e7c4
5 changed files with 0 additions and 32 deletions

View file

@ -7,8 +7,6 @@
# Composer version
YNH_COMPOSER_VERSION="2.5.4"
nodejs_version=16
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -62,17 +62,6 @@ ynh_script_progression --message="Installing app with Composer..." --weight=15
ynh_install_composer
#=================================================
# INSTALL LYCHEE
#=================================================
ynh_script_progression --message="Installing $app..." --weight=10
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_warn_less sudo -u "$app" env "$ynh_node_load_PATH" "$ynh_npm" install
ynh_exec_warn_less sudo -u "$app" env "$ynh_node_load_PATH" NODE_ENV=production "$ynh_npm" run build
popd
#=================================================
# ADD A CONFIGURATION
#=================================================

View file

@ -20,9 +20,6 @@ ynh_remove_nginx_config
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
# Remove NodeJS
ynh_remove_nodejs
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -10,14 +10,6 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=7
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================

View file

@ -11,14 +11,6 @@ source /usr/share/yunohost/helpers
timezone="$(cat /etc/timezone)"
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=5
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================