diff --git a/conf/systemd.service b/conf/systemd.service index 26375b1..c36a84f 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__ -ExecStart=__NODEJS_PATH__/node __FINALPATH__/tiddlywiki mywiki --listen port=__PORT__ authenticated-user-header=basic +ExecStart=__NODEJS_PATH__/node __FINALPATH__/tiddlywiki mynewwiki --listen port=__PORT__ authenticated-user-header=basic Restart=always Environment=PATH=/usr/bin:/usr/local/bin:__NODEJS_PATH__ Environment=NODE_ENV=production diff --git a/scripts/install b/scripts/install index cc88edc..e6fc56c 100755 --- a/scripts/install +++ b/scripts/install @@ -98,7 +98,7 @@ 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 mywiki --init server + $nodejs_path/node $final_path/tiddlywiki mynewwiki --init server popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 98322d5..c8fd7c7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,7 +79,11 @@ then ynh_print_info --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + #ynh_setup_source --dest_dir="$final_path" + + pushd $final_path + npm update -g tiddlywiki + popd fi #=================================================