mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
commit
e0ecf9e8f3
3 changed files with 7 additions and 9 deletions
|
@ -133,14 +133,12 @@ setup="{
|
||||||
\"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
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}"
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}"
|
|
||||||
popd
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -164,7 +162,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add $app --description="Nodejs Forum" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Forum software" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START ETHERPAD IN BACKGROUND
|
# START ETHERPAD IN BACKGROUND
|
||||||
|
|
|
@ -101,7 +101,7 @@ systemctl enable $app.service --quiet
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add $app --description="Nodejs Forum" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Forum software" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -128,7 +128,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add $app --description="Nodejs Forum" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Forum software" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Reference in a new issue