diff --git a/conf/systemd.service b/conf/systemd.service index 711df10..e5a3e1c 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,7 +9,7 @@ Group=__APP__ WorkingDirectory=__FINALPATH__ Environment=PATH=__ENV_PATH__ Environment=NODE_ENV=production -ExecStart=__YNH_NODE__ tiddlywiki ++languages/fr-FR mynewwiki --init server --listen port=__PORT__ username=__ADMIN__ password=__PASSWORD__ +ExecStart=__YNH_NODE__ tiddlywiki ++languages/fr-FR mynewwiki --listen port=__PORT__ username=__ADMIN__ password=__PASSWORD__ Restart=always [Install] diff --git a/scripts/install b/scripts/install index e68d12a..3328512 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2 pushd $final_path ynh_use_nodejs npm install -g tiddlywiki - tiddlywiki mynewwiki --init server + env $ynh_node_load_PATH tiddlywiki mynewwiki --init server popd #================================================= @@ -116,7 +116,6 @@ pushd $final_path 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_replace_string --match_string="__YNH_NODE__" --replace_string="$ynh_node" --target_file=../conf/systemd.service ynh_add_systemd_config