Commit c1fe3a24 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play --ipfs: initialize db with site prepared data

parent 82416f53
......@@ -358,6 +358,10 @@ if [ "$1" = "--ipfs" ] ; then
if [ ! -r "$EGET_IPFS_DB" ] ; then
sudorun touch "$EGET_IPFS_DB" >&2
sudorun chmod -v a+rw "$EGET_IPFS_DB" >&2
# get initial db from server
local URL="https://eepm.ru/app-versions"
info "Initialize IPFS DB in $EGET_IPFS_DB file and fill it with data from $URL/eget-ipfs-db.txt"
docmd eget -q -O $EGET_IPFS_DB "$URL/eget-ipfs-db.txt"
fi
else
warning "ipfs db dir $eget_ipfs_db is not exists, skipping --ipfs"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment