You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
290 B

3 years ago
  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