before.sh 476 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. #
  3. # packager.io before script
  4. #
  5. set -eux
  6. # print environemnt
  7. uname -a
  8. ruby -v
  9. env
  10. cat Gemfile.lock
  11. # Use more detailed version information including packager.io build info.
  12. if [ -z "${APP_PKG_ITERATION}" ]
  13. then
  14. echo "Error: could not find version information, aborting."
  15. exit 1
  16. fi
  17. ZAMMAD_VERSION="$APP_PKG_VERSION-$APP_PKG_ITERATION"
  18. echo "Setting VERSION information to $ZAMMAD_VERSION"
  19. echo "$ZAMMAD_VERSION" > VERSION
  20. # cleanup
  21. script/build/cleanup.sh