cohosting icon indicating copy to clipboard operation
cohosting copied to clipboard

fix: update cohosting.sh

Open olizilla opened this issue 6 years ago • 3 comments

  • use the /cohosting/full dir to be inline with the spec
  • rename gc to prune to match npm flavour ipfs-costing
  • ensure prune with no args leaves 1 snapshot in place as per https://github.com/ipfs-shipyard/ipfs-cohost/issues/13
  • add usage descriptions
  • show usage if command doesnt match any supported
  • rename to ipfs-cohost.sh to match npm flavour

License: MIT Signed-off-by: Oli Evans [email protected]

olizilla avatar Nov 20 '19 16:11 olizilla

@olizilla this is awesome! However, I would have a way to change MFS_DIR because with this changes this would only affect fully cohosted websites and not lazily cohosted websites

hacdias avatar Nov 21 '19 02:11 hacdias

The current version of the script only does full cohosting, and wasn't storing dirs in a full dir, so I added it.

olizilla avatar Nov 21 '19 12:11 olizilla

@olizilla okay, then it's an improvement definitely 😄

hacdias avatar Nov 21 '19 12:11 hacdias