mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-30 21:33:00 +00:00 
			
		
		
		
	Fix: renaming of /var/lib/mympd/smartpls/*.dist files
This commit is contained in:
		| @@ -52,12 +52,15 @@ post_upgrade() { | |||||||
|   # move smartpls into place unless already existing |   # move smartpls into place unless already existing | ||||||
|   for PLDIST in /var/lib/mympd/smartpls/*.dist |   for PLDIST in /var/lib/mympd/smartpls/*.dist | ||||||
|   do |   do | ||||||
|  |     if [ -f "$PLDIST" ] | ||||||
|  |     then | ||||||
|       PLS=$(basename $PLDIST .dist) |       PLS=$(basename $PLDIST .dist) | ||||||
|       if [ -f /var/lib/mympd/smartpls/$PLS ] |       if [ -f /var/lib/mympd/smartpls/$PLS ] | ||||||
|       then |       then | ||||||
|         rm $PLDIST |         rm $PLDIST | ||||||
|       else |       else | ||||||
|       mv $PLDIST /var/lib/mympd/smartpls/$PLS |         mv -v $PLDIST /var/lib/mympd/smartpls/$PLS | ||||||
|  |       fi | ||||||
|     fi |     fi | ||||||
|   done |   done | ||||||
|  |  | ||||||
|   | |||||||
| @@ -66,12 +66,15 @@ fi | |||||||
| # move smartpls into place unless already existing | # move smartpls into place unless already existing | ||||||
| for PLDIST in /var/lib/mympd/smartpls/*.dist | for PLDIST in /var/lib/mympd/smartpls/*.dist | ||||||
| do | do | ||||||
|  |   if [ -f "$PLDIST" ] | ||||||
|  |   then | ||||||
|     PLS=$(basename $PLDIST .dist) |     PLS=$(basename $PLDIST .dist) | ||||||
|     if [ -f /var/lib/mympd/smartpls/$PLS ] |     if [ -f /var/lib/mympd/smartpls/$PLS ] | ||||||
|     then |     then | ||||||
|       rm $PLDIST |       rm $PLDIST | ||||||
|     else |     else | ||||||
|     mv $PLDIST /var/lib/mympd/smartpls/$PLS |       mv -v $PLDIST /var/lib/mympd/smartpls/$PLS | ||||||
|  |     fi | ||||||
|   fi |   fi | ||||||
| done | done | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								debian/postinst
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								debian/postinst
									
									
									
									
										vendored
									
									
								
							| @@ -36,15 +36,19 @@ fi | |||||||
| # move smartpls into place unless already existing | # move smartpls into place unless already existing | ||||||
| for PLDIST in /var/lib/mympd/smartpls/*.dist | for PLDIST in /var/lib/mympd/smartpls/*.dist | ||||||
| do | do | ||||||
|  |   if [ -f "$PLDIST" ] | ||||||
|  |   then | ||||||
|     PLS=$(basename $PLDIST .dist) |     PLS=$(basename $PLDIST .dist) | ||||||
|     if [ -f /var/lib/mympd/smartpls/$PLS ] |     if [ -f /var/lib/mympd/smartpls/$PLS ] | ||||||
|     then |     then | ||||||
|       rm $PLDIST |       rm $PLDIST | ||||||
|     else |     else | ||||||
|     mv $PLDIST /var/lib/mympd/smartpls/$PLS |       mv -v $PLDIST /var/lib/mympd/smartpls/$PLS | ||||||
|  |     fi | ||||||
|   fi |   fi | ||||||
| done | done | ||||||
|  |  | ||||||
|  |  | ||||||
| # move config into place unless already existing | # move config into place unless already existing | ||||||
| if [ ! -f /etc/mympd/mympd.conf ] | if [ ! -f /etc/mympd/mympd.conf ] | ||||||
| then  | then  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation