From 403e567d3e92bd31ff084d75bf09ecaf3f2f4feb Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Mon, 16 Oct 2017 17:37:31 +0200 Subject: [PATCH] Update install --- scripts/install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 3d364e1..d4a6eb8 100644 --- a/scripts/install +++ b/scripts/install @@ -77,7 +77,7 @@ ynh_app_setting_set $app port $port # INSTALL NODEJS #================================================= -ynh_install_nodejs 6.2.2 +ynh_install_nodejs 4 #================================================= # INSTALL DEPENDENCIES @@ -97,9 +97,11 @@ ynh_mysql_setup_db $db_name $db_name #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_app_setting_set $app final_path $final_path +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source "$final_path" ynh_use_nodejs -npm i -g ethercalc -ethercalc +npm install #================================================= # NGINX CONFIGURATION #================================================= @@ -143,7 +145,7 @@ sudo cp ../conf/settings.json "$final_path/settings.json" #================================================= # Calculate and store the config file checksum into the app settings -ynh_store_file_checksum "$final_path/CONFIG_FILE" +ynh_store_file_checksum "$final_path/settings.json" #================================================= # GENERIC FINALIZATION