diff --git a/scripts/install b/scripts/install index 7fe9a64..004ff25 100644 --- a/scripts/install +++ b/scripts/install @@ -92,7 +92,7 @@ ynh_system_user_create --username=$app # Load services once to generate system.xml systemctl enable jellyfin -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete" ynh_systemd_action --service_name=$app --action="stop" # Port config @@ -135,7 +135,7 @@ yunohost service add $app --description "Jellyfin media center" --log "/var/log/ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 87c6bcf..2e727af 100644 --- a/scripts/restore +++ b/scripts/restore @@ -91,8 +91,8 @@ ynh_install_extra_app_dependencies --repo="https://repo.jellyfin.org/debian $( l #================================================= ynh_script_progression --message="Restoring the systemd configuration..." --weight=2 -ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service" 2>/dev/null -ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" 2>/dev/null +ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service" 2>/dev/null +ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" 2>/dev/null systemctl enable $app.service #================================================= @@ -107,7 +107,7 @@ yunohost service add $app --description "Jellyfin media center" --log "/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index ff41401..0e1dd4d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,7 +103,7 @@ yunohost service add $app --description "Jellyfin media center" --log "/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete" #================================================= # RELOAD NGINX