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-02 09:22:31 +02:00
parent 0922fe0868
commit 14e95aa67c
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -133,12 +133,14 @@ setup="{
\"database\": \"postgres\",
\"postgres:host\": \"localhost\",
\"postgres:port\": \"5432\",
\"postgres:username\": \"${db_name}\",
\"postgres:password\": \"${db_pwd}\",
\"postgres:database\": \"${db_name}\"
\"postgres:username\": \"$db_name\",
\"postgres:password\": \"$db_pwd\",
\"postgres:database\": \"$db_name\"
}"
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}"
pushd $final_path
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}"
popd
#=================================================
# NGINX CONFIGURATION
@ -162,7 +164,7 @@ ynh_add_systemd_config
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Forum software" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Nodejs Forum" --log="/var/log/$app/$app.log"
#=================================================
# START ETHERPAD IN BACKGROUND