pre_migration_hook.sh 422 B

123456789101112
  1. #!/usr/bin/env bash
  2. set -e
  3. SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  4. cd $SCRIPT_PATH
  5. #echo "importing accounts"
  6. #yarn joystream-cli account:import ./test-data/initial-members.json
  7. echo "creating 1 channel"
  8. yarn joystream-cli content:createChannel --input=./assets/TestChannel.json --context=Member
  9. echo "adding 1 video to the above channel"
  10. yarn joystream-cli content:createVideo -c 0 --input=./assets/TestVideo.json