1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00

Update install

This commit is contained in:
ericgaspar 2020-12-23 20:34:29 +01:00
parent 4e32ece020
commit e846226006
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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 ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # 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 # NGINX CONFIGURATION
@ -112,17 +115,18 @@ ynh_script_progression --message="Configuring system user..." --weight=4
# Create a system user # Create a system user
ynh_system_user_create --username=$app --home_dir=$final_path ynh_system_user_create --username=$app --home_dir=$final_path
#================================================= # #=================================================
# INSTALL ETHERPAD # # INSTALL ETHERPAD
#================================================= # #=================================================
ynh_script_progression --message="Installing Etherpad..." --weight=90 # ynh_script_progression --message="Installing Etherpad..." --weight=90
chown -R $app: $final_path # chown -R $app: $final_path
pushd "$final_path" || ynh_die # pushd "$final_path" || ynh_die
ynh_use_nodejs # ynh_use_nodejs
ynh_exec_as $app env "$ynh_node_load_PATH" bin/installDeps.sh # ynh_exec_as $app env "$ynh_node_load_PATH" bin/installDeps.sh
popd || ynh_die
# popd || ynh_die
#================================================= #=================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE