diff --git a/scripts/_common.sh b/scripts/_common.sh index 27567b9..1a7049a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,8 +7,6 @@ # Composer version YNH_COMPOSER_VERSION="2.5.4" -nodejs_version=16 - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index f3201e3..db8ead4 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/remove b/scripts/remove index 04e45b2..61db822 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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 #================================================= diff --git a/scripts/restore b/scripts/restore index f40cfa2..b0842a1 100755 --- a/scripts/restore +++ b/scripts/restore @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c576342..7154dff 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================