From 42151dff61678b96a5d9e58790188685bb016d1b Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Tue, 1 May 2018 14:06:25 +0200 Subject: [PATCH] Update install --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 11a057d..fbdd7a1 100644 --- a/scripts/install +++ b/scripts/install @@ -111,6 +111,9 @@ ynh_system_user_create $app # Create a dedicated systemd config ynh_add_systemd_config +ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service" +ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service" +ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service" #================================================= # MODIFY A CONFIG FILE @@ -121,6 +124,7 @@ cp -a ../conf/config.js $config_path #================================================= # INSTALL THE LOUNGE #================================================= +ynh_use_nodejs npm -g install $final_path # Install webpack