setup.sh 703 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. fw_depends mysql lua
  3. rm -rf octopus
  4. git clone https://github.com/cyberz-eu/octopus.git
  5. cd octopus
  6. # January 4th, 2017
  7. git checkout 0c4fc42198fed3a299c78d4b910188113d478bc5
  8. cd ..
  9. # The following line is a hacky way to get this framework working.
  10. # zlib fix needs to happen within the framework owner's repo
  11. sed -i 's|zlib_url=http://zlib.net/zlib-$zlib_version.tar.gz|zlib_url=https://github.com/madler/zlib/archive/v$zlib_version.tar.gz|g' octopus/bin/unix/server.sh
  12. cp -avr app octopus/extensions
  13. cp -vf config.lua octopus/extensions
  14. sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' octopus/extensions/config.lua
  15. cd octopus/bin/unix
  16. . ./server.sh install
  17. . ./server.sh build
  18. . ./server.sh start