mirror of
https://github.com/YunoHost-Apps/tiddlywiki_ynh.git
synced 2024-09-03 20:26:34 +02:00
fix
This commit is contained in:
parent
23f57ae57f
commit
c23b5e00b3
3 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__/ {
|
||||
location / {
|
||||
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
|
|
|
@ -14,5 +14,3 @@ Environment=NODE_ENV=production
|
|||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
|||
ynh_script_progression --message="tiddlywiki..." --weight=2
|
||||
|
||||
pushd $final_path
|
||||
$ynh_node $final_path/tiddlywiki monwiki --init server
|
||||
$nodejs_path/node $final_path/tiddlywiki monwiki --init server
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
@ -106,6 +106,8 @@ popd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file="../conf/systemd.service"
|
||||
ynh_replace_string --match_string="__port__" --replace_string="$port" --target_file="../conf/systemd.service"
|
||||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue