1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/komga_ynh.git synced 2024-09-03 19:36:07 +02:00

fix line_match

This commit is contained in:
Kay0u 2021-03-01 14:34:03 +01:00
parent 76642ce0ee
commit 0b2e46aa50
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
5 changed files with 5 additions and 6 deletions

View file

@ -10,8 +10,6 @@ WorkingDirectory=__FINALPATH__/
ExecStart=/usr/bin/java -jar -Xmx1g app.jar --server.port=__PORT__ --server.servlet.context-path="__PATH__/"
Restart=on-failure
RestartSec=10
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target

View file

@ -108,7 +108,7 @@ fi
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=5
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started Komga server"
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Tomcat started on port\(s\): $port \(http\) with context path '$path_url'"
#=================================================
# RELOAD NGINX

View file

@ -146,7 +146,7 @@ yunohost service add $app --description="Media server for your comics, manga and
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started Komga server"
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Tomcat started on port\(s\): $port \(http\) with context path '$path_url'"
#=================================================
# SETUP SSOWAT

View file

@ -31,6 +31,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
# CHECK IF THE APP CAN BE RESTORED
@ -110,7 +111,7 @@ yunohost service add $app --description="Media server for your comics, manga and
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=3
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started Komga server"
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Tomcat started on port\(s\): $port \(http\) with context path '$path_url'"
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION

View file

@ -132,7 +132,7 @@ yunohost service add $app --description="Media server for your comics, manga and
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started Komga server"
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Tomcat started on port\(s\): $port \(http\) with context path '$path_url'"
#=================================================
# RELOAD NGINX