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-07-01 23:38:04 +02:00
parent 933a16b043
commit ca73233a7a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -116,6 +116,22 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# CONFIGURE NODEBB
#=================================================
chown -R $app: $final_path
pushd $final_path
#ynh_exec_as $app env $ynh_node_load_PATH
ynh_exec_as $app env $ynh_node_load_PATH ./nodebb setup -l > $install_log
#npm install nodebb-plugin-dbsearch --save-prod
#./nodebb build -l
#ynh_exec_as $app ./nodebb setup -l > $install_log
#ynh_exec_as $app npm install nodebb-plugin-dbsearch --save-prod
#ynh_exec_as $app ./nodebb build -l
popd
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -141,21 +157,6 @@ ynh_add_config --template="../conf/config.json" --destination="$final_path/confi
chmod 400 "$final_path/config.json"
chown $app "$final_path/config.json"
#=================================================
# CONFIGURE NODEBB
#=================================================
chown -R $app:$app $final_path
pushd $final_path
#ynh_exec_as $app env $ynh_node_load_PATH
ynh_exec_as $app env $ynh_node_load_PATH ./nodebb setup -l > $install_log
#npm install nodebb-plugin-dbsearch --save-prod
#./nodebb build -l
#ynh_exec_as $app ./nodebb setup -l > $install_log
#ynh_exec_as $app npm install nodebb-plugin-dbsearch --save-prod
#ynh_exec_as $app ./nodebb build -l
popd
#=================================================
# START NodeBB IN BACKGROUND