1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
ericgaspar 2020-12-23 22:32:02 +01:00
parent e846226006
commit 89669d24ab
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 18 additions and 14 deletions

View file

@ -97,7 +97,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$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
git clone --branch master https://github.com/ether/etherpad-lite.git "$final_path" --quiet
#=================================================
# NGINX CONFIGURATION
@ -122,11 +122,12 @@ ynh_system_user_create --username=$app --home_dir=$final_path
# chown -R $app: $final_path
# pushd "$final_path" || ynh_die
# ynh_use_nodejs
pushd "$final_path" || ynh_die
ynh_use_nodejs
ynh_exec_as $app bin/run.sh
# ynh_exec_as $app env "$ynh_node_load_PATH" bin/installDeps.sh
# popd || ynh_die
popd || ynh_die
#=================================================
# MODIFY A CONFIG FILE

View file

@ -82,7 +82,10 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
pushd "$final_path"
git pull origin
ynh_exec_as $app bin/run.sh
popd
fi
#=================================================
@ -110,17 +113,17 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app
#=================================================
# 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