From cb8704a138d45ba91811c488fc887d37f5b51d98 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 27 Mar 2021 12:46:29 +0100 Subject: [PATCH] Update install --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 6c0441a..1983be2 100755 --- a/scripts/install +++ b/scripts/install @@ -96,11 +96,14 @@ ynh_system_user_create --username=$app --home_dir=$final_path #================================================= ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2 +mkdir /var/www/$app +final_path=/var/www/$app pushd $final_path ynh_use_nodejs + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install -g tiddlywiki #ynh_exec_as $app env $ynh_node_load_PATH tiddlywiki mynewwiki --init server - npm install -g tiddlywiki - tiddlywiki mynewwiki --init server + #npm install -g tiddlywiki + ynh_exec_as $app $ynh_node_load_PATH tiddlywiki mynewwiki --init server popd #=================================================