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:
parent
4e32ece020
commit
e846226006
1 changed files with 14 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue