1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiddlywiki_ynh.git synced 2024-09-03 20:26:34 +02:00
This commit is contained in:
ericgaspar 2021-03-01 20:51:09 +01:00
parent 647a5c2955
commit c27dec633a
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__FINALPATH__ 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 Restart=always
Environment=PATH=/usr/bin:/usr/local/bin:__NODEJS_PATH__ Environment=PATH=/usr/bin:/usr/local/bin:__NODEJS_PATH__
Environment=NODE_ENV=production Environment=NODE_ENV=production

View file

@ -98,7 +98,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2 ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2
pushd $final_path pushd $final_path
$nodejs_path/node $final_path/tiddlywiki mywiki --init server $nodejs_path/node $final_path/tiddlywiki mynewwiki --init server
popd popd
#================================================= #=================================================

View file

@ -79,7 +79,11 @@ then
ynh_print_info --message="Upgrading source files..." ynh_print_info --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # 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 fi
#================================================= #=================================================