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
0922fe0868
commit
14e95aa67c
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
@ -179,7 +181,7 @@ ynh_script_progression --message="Configuring permissions..." --weight=1
|
|||
# Make app public if necessary
|
||||
if [ $is_public -eq 1 ]
|
||||
then
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
fi
|
||||
|
||||
ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true"
|
||||
|
|
Loading…
Add table
Reference in a new issue