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