mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
Update install
This commit is contained in:
parent
b0c7c45113
commit
72ee28b74a
1 changed files with 2 additions and 4 deletions
|
@ -125,6 +125,8 @@ chown -R $app:www-data "$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring the $app..." --weight=2
|
ynh_script_progression --message="Configuring the $app..." --weight=2
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
|
||||||
|
|
||||||
setup="{
|
setup="{
|
||||||
\"admin:username\": \"$admin\",
|
\"admin:username\": \"$admin\",
|
||||||
\"admin:password\": \"$password\",
|
\"admin:password\": \"$password\",
|
||||||
|
@ -136,12 +138,8 @@ pushd $final_path
|
||||||
ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log
|
ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log
|
||||||
popd
|
popd
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
|
|
||||||
chmod 400 "$final_path/config.json"
|
chmod 400 "$final_path/config.json"
|
||||||
chown $app:$app "$final_path/config.json"
|
chown $app:$app "$final_path/config.json"
|
||||||
pushd $final_path
|
|
||||||
ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb upgrade
|
|
||||||
popd
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue