Commit 0279069a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: restore EPM_IPFS_DB_UPDATE_SKIPPING support

parent 95099a16
...@@ -598,7 +598,6 @@ __epm_play_initialize_ipfs() ...@@ -598,7 +598,6 @@ __epm_play_initialize_ipfs()
fi fi
local eget_ipfs_db_local=$eget_ipfs_db local eget_ipfs_db_local=$eget_ipfs_db
local eget_ipfs_db_remote=$epm_vardir/eget-ipfs-db-remote.txt
# ensure local writable db exists # ensure local writable db exists
if [ ! -r "$eget_ipfs_db_local" ] ; then if [ ! -r "$eget_ipfs_db_local" ] ; then
...@@ -606,6 +605,14 @@ __epm_play_initialize_ipfs() ...@@ -606,6 +605,14 @@ __epm_play_initialize_ipfs()
sudorun chmod -v a+rw "$eget_ipfs_db_local" >&2 sudorun chmod -v a+rw "$eget_ipfs_db_local" >&2
fi fi
if [ -n "$EPM_IPFS_DB_UPDATE_SKIPPING" ] ; then
# skip remote db download (for the source server that generates the db)
export EGET_IPFS_DB="$eget_ipfs_db_local"
return
fi
local eget_ipfs_db_remote=$epm_vardir/eget-ipfs-db-remote.txt
# ensure remote cached db is writable # ensure remote cached db is writable
if [ ! -w "$eget_ipfs_db_remote" ] ; then if [ ! -w "$eget_ipfs_db_remote" ] ; then
sudorun touch "$eget_ipfs_db_remote" >&2 sudorun touch "$eget_ipfs_db_remote" >&2
......
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