Skip to content

Commit b650356

Browse files
committed
Use rsync instead of wget to pull down the datatracker database image, since wget isn't available on macs by default.
- Legacy-Id: 12321
1 parent a1bdbaf commit b650356

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docker/setupdb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ done
101101
# The program itself
102102

103103
[ -n "$MYSQLDIR" ] || MYSQLDIR=$parent/data/mysql
104-
[ -n "$URL" ] || URL=https://www.ietf.org/lib/dt/sprint/ietf_utf8.bin.tar.bz2
104+
[ -n "$URL" ] || URL=rsync.ietf.org::dev.db/ietf_utf8.bin.tar.bz2
105105

106106
cd $(dirname $MYSQLDIR)
107-
wget -N $URL && echo "Unpacking database ..." && tar xjf ietf_utf8.bin.tar.bz2 && echo "Fixing permissions ..." && chmod -R go+rwX mysql
107+
echo "Downloading a MySQL database image ..."
108+
rsync -v $URL ./ && echo -e "\nUnpacking database ..." && tar xjf ietf_utf8.bin.tar.bz2 && echo "Fixing permissions ..." && chmod -R go+rwX mysql
108109

0 commit comments

Comments
 (0)