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
933a16b043
commit
ca73233a7a
1 changed files with 16 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue