entrypoint.sh 207 B

12345678910111213
  1. #!/bin/bash
  2. echo -n "Launch args: "
  3. echo "$@"
  4. if [ "$1" == "update" ]; then
  5. cd /app || exit 1
  6. exec su user -c "bash ./update.sh"
  7. elif [ "$1" == "cron" ]; then
  8. exec cron -f
  9. else
  10. exec "$@"
  11. fi