From e8462260062f5dd81d798d9a19f072dad1d418c1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 23 Dec 2020 20:34:29 +0100 Subject: [PATCH] Update install --- scripts/install | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/scripts/install b/scripts/install index b2f051f..13e5d35 100644 --- a/scripts/install +++ b/scripts/install @@ -94,7 +94,10 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$final_path" +#ynh_setup_source --dest_dir="$final_path" + +#git clone --branch master git://github.com/ether/etherpad-lite.git "$final_path" --quiet +git clone --branch master https://github.com/ether/etherpad-lite.git "$final_path" --quiet && cd "$final_path" && bin/run.sh #================================================= # NGINX CONFIGURATION @@ -112,17 +115,18 @@ ynh_script_progression --message="Configuring system user..." --weight=4 # Create a system user ynh_system_user_create --username=$app --home_dir=$final_path -#================================================= -# INSTALL ETHERPAD -#================================================= -ynh_script_progression --message="Installing Etherpad..." --weight=90 +# #================================================= +# # INSTALL ETHERPAD +# #================================================= +# ynh_script_progression --message="Installing Etherpad..." --weight=90 -chown -R $app: $final_path +# chown -R $app: $final_path -pushd "$final_path" || ynh_die - ynh_use_nodejs - ynh_exec_as $app env "$ynh_node_load_PATH" bin/installDeps.sh -popd || ynh_die +# pushd "$final_path" || ynh_die +# ynh_use_nodejs +# ynh_exec_as $app env "$ynh_node_load_PATH" bin/installDeps.sh + +# popd || ynh_die #================================================= # MODIFY A CONFIG FILE