1
0
Fork 0
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:
ericgaspar 2021-09-01 17:21:50 +02:00
parent d9e3b43dc1
commit 809b6fafd4
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -124,8 +124,23 @@ chown -R $app:www-data "$final_path"
# CONFIGURE NODEBB
#=================================================
setup="{
\"url\": \"https://${domain}${path_url}\",
\"admin:username\": \"${admin}\",
\"admin:password\": \"${password}\",
\"admin:password:confirm\": \"${password}\",
\"admin:email\": \"admin@${domain}\",
\"database\": \"postgres\",
\"postgres:host\": \"localhost\",
\"postgres:port\": \"5432\",
\"postgres:username\": \"$db_name\",
\"postgres:password\": \"$db_pwd\",
\"postgres:database\": \"$db_name\"
}"
pushd $final_path
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup --setup "${setup}" --series
popd
#=================================================