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-27 17:47:21 +01:00
parent 7ce99ae1f6
commit 1502578da9
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 2 deletions

View file

@ -9,7 +9,7 @@ Group=__APP__
WorkingDirectory=__FINALPATH__
Environment=PATH=__ENV_PATH__
Environment=NODE_ENV=production
ExecStart=mynewwiki --listen port=__PORT__ #authenticated-user-header=basic
ExecStart=__YNH_NPM__ mynewwiki --listen port=__PORT__ #authenticated-user-header=basic
#tiddlywiki mynewwiki --listen port=__PORT__ username=__ADMIN__ password=__PASSWORD__
Restart=always

View file

@ -108,7 +108,10 @@ pushd $final_path
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1
ynh_add_systemd_config --others_var="ynh_node_load_PATH"
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service"
ynh_add_systemd_config
#=================================================
# GENERIC FINALIZATION