From ca73233a7a35be9135f4f07eaa5e559d34107523 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 1 Jul 2021 23:38:04 +0200 Subject: [PATCH] Update install --- scripts/install | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/install b/scripts/install index 0a19e77..04e908a 100644 --- a/scripts/install +++ b/scripts/install @@ -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