setup2.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # Script to install the FinalsClub fc app once you have:
  3. # * installed appropriate node, npm, and mongo versions
  4. # * checked this repo out on the appropriate server
  5. # TODO: Integrate this (optionally) into setup.sh
  6. echo ""
  7. echo ""
  8. echo ""
  9. echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = "
  10. echo "\t\tWelcome to FinalsClub live collaboration installer"
  11. echo ""
  12. echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = "
  13. echo ""
  14. echo "FC: ..."
  15. echo ""
  16. echo "FC: installing node_modules for the fc app"
  17. echo "FC: ..."
  18. npm install .
  19. echo "FC: Done!"
  20. # Checking out git submodules
  21. echo "FC: checking out submodules"
  22. echo "FC: ..."
  23. git submodule update --init
  24. echo "FC: Done!"
  25. echo ""
  26. # Setting up EPL
  27. echo "FC: Setting up etherpad-lite submodule"
  28. echo "FC: ..."
  29. echo "FC: Installing etherpad-lite npm requirements into local folder"
  30. cd ./etherpad-lite
  31. ./bin/installDeps.sh
  32. echo "FC: ..."
  33. echo "FC: Done!"
  34. echo "FC: Should be installed correctly. If you find errors, please email seth@finalsclub.org and/or report it at https://github.com/finalsclubdev/FinalsClub/issues"