From 2425090491c81ab7668ac8b255e73f81cc2e7c2b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 16 Feb 2021 20:00:10 +0100 Subject: [PATCH] Fix --- conf/systemd.service | 2 +- scripts/install | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index cfb9b2b..1549372 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 monwiki --listen port=__port__ authenticated-user-header=basic +ExecStart=__NODEJS_PATH__/node __FINALPATH__/tiddlywiki monwiki --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 e57ca19..afffd59 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,6 @@ 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 #=================================================