From b6ac81c78a71512ae634bd6f27219a2b8d54b6a5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 2 Sep 2021 10:09:41 +0200 Subject: [PATCH] Fix --- conf/systemd.service | 4 ++-- scripts/install | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index d6b9562..78ac551 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -11,8 +11,8 @@ Group=__APP__ Environment=NODE_ENV=production WorkingDirectory=__FINALPATH__/ #PIDFile=__FINALPATH__/pidfile -Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__YNH_NODE__ __FINALPATH__/nodebb start +Environment="__NODE_ENV_PATH__" +ExecStart=__FINALPATH__/nodebb start #loader.js Restart=always diff --git a/scripts/install b/scripts/install index e7473b8..659e554 100644 --- a/scripts/install +++ b/scripts/install @@ -143,11 +143,6 @@ pushd $final_path ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log popd -#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 node $final_path/app --setup "${setup}" --series | tee -a $install_log -popd - #================================================= # NGINX CONFIGURATION #================================================= @@ -161,8 +156,6 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - ynh_add_systemd_config #=================================================