mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Merge pull request #3690 from MichaIng/patch-1
Fix left /usr/bin/jellyfin symlink on removal and typo
This commit is contained in:
		
						commit
						d454e8710d
					
				
							
								
								
									
										4
									
								
								debian/postrm
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								debian/postrm
									
									
									
									
										vendored
									
									
								
							@ -25,7 +25,7 @@ case "$1" in
 | 
			
		||||
  purge)
 | 
			
		||||
    echo PURGE | debconf-communicate $NAME > /dev/null 2>&1 || true
 | 
			
		||||
 | 
			
		||||
    if [[ -x "/etc/init.d/jellyfin" ]] || [[ -e "/etc/init/jellyfin.connf" ]]; then
 | 
			
		||||
    if [[ -x "/etc/init.d/jellyfin" ]] || [[ -e "/etc/init/jellyfin.conf" ]]; then
 | 
			
		||||
      update-rc.d jellyfin remove >/dev/null 2>&1 || true
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
@ -54,7 +54,7 @@ case "$1" in
 | 
			
		||||
      rm -rf $PROGRAMDATA
 | 
			
		||||
    fi
 | 
			
		||||
    # Remove binary symlink
 | 
			
		||||
    [[ -f /usr/bin/jellyfin ]] && rm /usr/bin/jellyfin
 | 
			
		||||
    rm -f /usr/bin/jellyfin
 | 
			
		||||
    # Remove sudoers config
 | 
			
		||||
    [[ -f /etc/sudoers.d/jellyfin-sudoers ]] && rm /etc/sudoers.d/jellyfin-sudoers
 | 
			
		||||
    # Remove anything at the default locations; catches situations where the user moved the defaults
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user