1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Remove line_match from ynh_systemd_actions : they actually just match when systemctl returns

This commit is contained in:
Salamandar 2023-10-16 16:59:06 +02:00 committed by Salamandar
parent f4c8be46bb
commit ec5591e03d
4 changed files with 7 additions and 7 deletions

View file

@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --timeout=15
#=================================================
# MODIFY URL IN NGINX CONF
@ -49,7 +49,7 @@ fi
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --timeout=15
#=================================================
# END OF SCRIPT

View file

@ -57,7 +57,7 @@ sleep 30
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" --timeout=15
ynh_add_config --template="system.xml" --destination="$config_path/system.xml"
ynh_add_config --template="network.xml" --destination="$config_path/network.xml"
@ -117,7 +117,7 @@ ynh_permission_update --permission="admin" --add="$admin"
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 Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --timeout=15
#=================================================
# END OF SCRIPT

View file

@ -100,7 +100,7 @@ yunohost service add $app --description="Jellyfin media center"
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --timeout=15
#=================================================
# GENERIC FINALIZATION

View file

@ -23,7 +23,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" --timeout=15
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
@ -157,7 +157,7 @@ yunohost service add $app --description="Jellyfin media center"
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --timeout=15
#=================================================
# END OF SCRIPT