mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Fix
This commit is contained in:
parent
e846226006
commit
89669d24ab
2 changed files with 18 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue