From 703e670479ad0790277927d3bf8d66372e59016d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 28 Feb 2021 15:08:28 +0530 Subject: [PATCH] fix systemd --- conf/systemd.service | 2 +- scripts/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index ba17394..c6c3ce9 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=java -jar __FINALPATH__/app.jar --server.port __PORT__ >> /var/log/__APP__/__APP__.log 2>&1 +ExecStart=java -jar __FINALPATH__/app.jar --server.port=__PORT__ >> /var/log/__APP__/__APP__.log 2>&1 [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index c173c9b..c4230cd 100755 --- a/scripts/install +++ b/scripts/install @@ -82,7 +82,7 @@ ynh_script_progression --message="Finding an available port..." --time --weight= ### - Remove the section "CLOSE A PORT" in the remove script # Find an available port -port=$(ynh_find_port --port=8095) +port=$(ynh_find_port --port=8080) ynh_replace_string --match_string=__PORT__ --replace_string="$port" --target_file="../conf/systemd.service" ynh_app_setting_set --app=$app --key=port --value=$port