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
5b81548a67
commit
c0aa948474
1 changed files with 14 additions and 18 deletions
|
@ -125,28 +125,24 @@ 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
|
||||||
|
|
||||||
# setup="{
|
setup="{
|
||||||
# \"url\": \"https://${domain}${path_url}\",
|
\"url\": \"https://${domain}${path_url}\",
|
||||||
# \"admin:username\": \"$admin\",
|
\"admin:username\": \"$admin\",
|
||||||
# \"admin:password\": \"$password\",
|
\"admin:password\": \"$password\",
|
||||||
# \"admin:password:confirm\": \"$password\",
|
\"admin:password:confirm\": \"$password\",
|
||||||
# \"admin:email\": \"admin@$domain\",
|
\"admin:email\": \"admin@$domain\",
|
||||||
# \"database\": \"postgres\",
|
\"database\": \"postgres\",
|
||||||
# \"postgres:host\": \"localhost\",
|
\"postgres:host\": \"localhost\",
|
||||||
# \"postgres:port\": \"5432\",
|
\"postgres:port\": \"5432\",
|
||||||
# \"postgres:username\": \"$db_name\",
|
\"postgres:username\": \"$db_name\",
|
||||||
# \"postgres:password\": \"$db_pwd\",
|
\"postgres:password\": \"$db_pwd\",
|
||||||
# \"postgres:database\": \"$db_name\"
|
\"postgres:database\": \"$db_name\"
|
||||||
# }"
|
}"
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup admin__password=$password | tee -a $install_log
|
ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# pushd $final_path
|
|
||||||
# ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log
|
|
||||||
# popd
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue