mirror of
https://github.com/YunoHost-Apps/komga_ynh.git
synced 2024-09-03 19:36:07 +02:00
fix systemd
This commit is contained in:
parent
2b805c0a3b
commit
703e670479
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue