1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Merge pull request #19 from YunoHost-Apps/patch

Patch
This commit is contained in:
Éric Gaspar 2021-09-02 08:45:30 +02:00 committed by GitHub
commit e0ecf9e8f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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