run-koel.sh 328 B

1234567891011121314151617181920
  1. set -e
  2. if [ "$(id -u)" = "0" ]; then
  3. exit 1
  4. fi
  5. if [ ! -z "$DB_HOST" ] && [ ! -z "$DB_PORT" ]; then
  6. while : ; do
  7. nc -z "$DB_HOST" "$DB_PORT" && break
  8. echo waiting for db at "$DB_HOST":"$DB_PORT"
  9. sleep 5
  10. done
  11. fi
  12. set -x
  13. # TODO run non-interactively
  14. php artisan koel:init
  15. apache2-foreground