home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

start-container (296B)


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