mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Update upgrade
This commit is contained in:
parent
2e6946bde1
commit
d4ba05bafd
1 changed files with 9 additions and 8 deletions
|
@ -122,6 +122,14 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
|
||||||
# Create a dedicated user (if not existing)
|
# Create a dedicated user (if not existing)
|
||||||
ynh_system_user_create --username=$app
|
ynh_system_user_create --username=$app
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MODIFY A CONFIG FILE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Reconfiguring Etherpad..." --weight=6
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/settings.json" --destination="$final_path/settings.json"
|
||||||
|
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL ETHERPAD
|
# INSTALL ETHERPAD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -131,17 +139,10 @@ chown -R $app: $final_path
|
||||||
|
|
||||||
pushd $final_path || ynh_die
|
pushd $final_path || ynh_die
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
ynh_secure_remove --file="$final_path/bin"
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH src/bin/installDeps.sh
|
ynh_exec_as $app env $ynh_node_load_PATH src/bin/installDeps.sh
|
||||||
popd || ynh_die
|
popd || ynh_die
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# MODIFY A CONFIG FILE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Reconfiguring Etherpad..." --weight=6
|
|
||||||
|
|
||||||
ynh_add_config --template="../conf/settings.json" --destination="$final_path/settings.json"
|
|
||||||
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue