diff --git a/scripts/install b/scripts/install index 44928d7..c64dddf 100644 --- a/scripts/install +++ b/scripts/install @@ -97,19 +97,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2 # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# SPECIFIC SETUP -#============================================== -# INSTALL HEDGEDOC -#============================================== -ynh_script_progression --message="Building Luckysheet... (this will take some time and resources!)" --weight=20 - -pushd $final_path - ynh_use_nodejs - npm install - npm install gulp --location=global -popd - #================================================= # MODIFY A CONFIG FILE #================================================= @@ -120,6 +107,20 @@ ynh_add_config --template="../conf/config.example.js" --destination="$final_path chmod 400 "$final_path/src/config.js" chown $app:$app "$final_path/src/config.js" +#================================================= +# SPECIFIC SETUP +#============================================== +# INSTALL HEDGEDOC +#============================================== +ynh_script_progression --message="Building Luckysheet... (this will take some time and resources!)" --weight=20 + +pushd $final_path + ynh_use_nodejs + npm install npm@latest --location=global + ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install + ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install gulp --location=global +popd + #================================================= # SETUP SYSTEMD #=================================================