mirror of
				https://github.com/linuxserver/docker-transmission.git
				synced 2025-11-03 10:15:48 +01:00 
			
		
		
		
	fixed update script
This commit is contained in:
		@@ -1,10 +1,19 @@
 | 
				
			|||||||
#!/usr/bin/with-contenv bash
 | 
					#!/usr/bin/with-contenv bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' settings.json`
 | 
				
			||||||
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json`
 | 
					BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rm /config/blocklists/*
 | 
					if [ $BLOCKLIST_URL == true ]; then
 | 
				
			||||||
cd /config/blocklists
 | 
						mkdir -p /tmp/blocklist
 | 
				
			||||||
wget -q $BLOCKLIST_URL
 | 
						cd /tmp/blocklist
 | 
				
			||||||
gunzip *.gz
 | 
						wget -q $BLOCKLIST_URL
 | 
				
			||||||
chmod go+r *
 | 
						if [ $? == 0 ]; then
 | 
				
			||||||
s6-svc -h /var/run/s6/services/transmission
 | 
							gunzip *.gz
 | 
				
			||||||
 | 
							if [ $? == 0 ]; then
 | 
				
			||||||
 | 
								chmod go+r *
 | 
				
			||||||
 | 
								rm /config/blocklists/*
 | 
				
			||||||
 | 
								cp /tmp/blocklists/* /config/blocklists
 | 
				
			||||||
 | 
								s6-svc -h /var/run/s6/services/transmission
 | 
				
			||||||
 | 
							fi
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user