start-container 290 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. if [ ! -z "$WWWUSER" ]; then
  3. usermod -u $WWWUSER sail
  4. fi
  5. if [ ! -d /.composer ]; then
  6. mkdir /.composer
  7. fi
  8. chmod -R ugo+rw /.composer
  9. if [ $# -gt 0 ];then
  10. exec gosu $WWWUSER "$@"
  11. else
  12. /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
  13. fi