aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs
diff options
context:
space:
mode:
authorMichaIng <micha@dietpi.com>2020-07-24 22:43:32 +0200
committerGitHub <noreply@github.com>2020-07-24 22:43:32 +0200
commit1883ecd81716acb108424924711aed842dd6338a (patch)
tree8cc0a6f0bc90d6b22a478fd5c70ace1ab00cc8b6 /Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs
parente3db0ac400e7a1a42e7a844a13ab052d26125612 (diff)
Fix left /usr/bin/jellyfin symlink on removal and typo
After removal of the symlink target file "/usr/lib/jellyfin/bin/jellyfin", file existence check on the symlink "[[ -f /usr/bin/jellyfin ]]" returns false. As a result the symlink is left in place on package purge. The correct check would be "[[ -L /usr/bin/jellyfin ]]", but since it could be a file in cases, e.g. manual fix on file systems with no symlink support or for any other reason, it is easiest to use "rm -f" to assure that it is removed in both cases and not return false even if it does not exist at all. Additionally this fixes a typo on upstart script check. Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs')
0 files changed, 0 insertions, 0 deletions