#!/bin/bash  
wget -P /root https://www.flyss.xyz/pan/blockList
file1=/root/blockList
file2=/etc/soga/blockList
diff $file1 $file2 > /dev/null
if [ $? == 0 ]; then
    rm -rf /root/blockList
else
    yes|mv /root/blockList /etc/soga/blockList && docker restart $(docker ps -q)
fi