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:
parent
a1bdbaf81e
commit
b650356850
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue