From ca2f2abe72b55b2ba89ea3ecd76173d08b8a0ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 11 Jul 2022 08:24:14 +0200 Subject: [PATCH] cleaning --- scripts/install | 6 +++--- scripts/upgrade | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index b31def0..4548150 100644 --- a/scripts/install +++ b/scripts/install @@ -100,6 +100,7 @@ ynh_setup_source --dest_dir=$final_path chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +chmod +x $final_path/app.js #================================================= # NGINX CONFIGURATION @@ -118,8 +119,8 @@ ynh_script_progression --message="Building CodiMD... (this will take some time a pushd $final_path ynh_use_nodejs - ynh_exec_as $app env $ynh_node_load_PATH bin/setup - ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH bin/setup + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build popd #================================================= @@ -132,7 +133,6 @@ ynh_add_config --template="../conf/.sequelizerc.example" --destination="$final_p chmod 600 $final_path/config.json chmod 600 $final_path/.sequelizerc -chmod +x $final_path/app.js #================================================= # SETUP SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 186b2b7..17b9905 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -136,8 +136,10 @@ then pushd "$final_path" ynh_use_nodejs - ynh_exec_warn_less bin/setup - ynh_exec_warn_less $ynh_npm run build + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH bin/setup + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build + #ynh_exec_warn_less ynh_exec_warn_less bin/setup + #ynh_exec_warn_less ynh_exec_warn_less $ynh_npm run build popd fi