Use rsync instead of wget to pull down the datatracker database image, since wget isn't available on macs by default.

- Legacy-Id: 12321
This commit is contained in:
Henrik Levkowetz 2016-11-12 05:26:33 +00:00
parent a1bdbaf81e
commit b650356850

View file

@ -101,8 +101,9 @@ done
# The program itself
[ -n "$MYSQLDIR" ] || MYSQLDIR=$parent/data/mysql
[ -n "$URL" ] || URL=https://www.ietf.org/lib/dt/sprint/ietf_utf8.bin.tar.bz2
[ -n "$URL" ] || URL=rsync.ietf.org::dev.db/ietf_utf8.bin.tar.bz2
cd $(dirname $MYSQLDIR)
wget -N $URL && echo "Unpacking database ..." && tar xjf ietf_utf8.bin.tar.bz2 && echo "Fixing permissions ..." && chmod -R go+rwX mysql
echo "Downloading a MySQL database image ..."
rsync -v $URL ./ && echo -e "\nUnpacking database ..." && tar xjf ietf_utf8.bin.tar.bz2 && echo "Fixing permissions ..." && chmod -R go+rwX mysql