From 18c38dca22570e974447bd6f9a35b8e34b266774 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 9 Mar 2021 23:30:02 +0100 Subject: [PATCH] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 904d17c..b7be4fd 100755 --- a/scripts/install +++ b/scripts/install @@ -97,7 +97,8 @@ ynh_system_user_create --username=$app --home_dir=$final_path ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2 pushd $final_path - $nodejs_path/node $final_path/tiddlywiki mynewwiki --init server + ynh_use_nodejs + ynh_exec_as $app env $ynh_node_load_PATH tiddlywiki mynewwiki --init server popd #================================================= @@ -105,8 +106,7 @@ popd #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file="../conf/systemd.service" -ynh_add_systemd_config +ynh_add_systemd_config --others_var="ynh_node_load_PATH" #================================================= # GENERIC FINALIZATION