mkdir patch-20180221
cd patch-20180221
wget http://cmc-dl.futuredial.com/tools/isd/patch-20180221-v1.7.5.tar.gz
tar zxvf patch-20180221-v1.7.5.tar.gz
cp fix.py /var/www/fd_ipsw/web/
cp ipsw.py /var/www/fd_ipsw/spider/spider/spiders/
cd /var/www/fd_ipsw/web/
echo "import fix" | python manage.py shell
rm fix.py
/usr/bin/flock -n /tmp/fd_ipsw.lockfile /var/www/fd_ipsw/spider.sh &>/dev/null &
echo 'DONE!!!'