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
17 lines
290 B
#!/usr/bin/env bash
|
|
|
|
if [ ! -z "$WWWUSER" ]; then
|
|
usermod -u $WWWUSER sail
|
|
fi
|
|
|
|
if [ ! -d /.composer ]; then
|
|
mkdir /.composer
|
|
fi
|
|
|
|
chmod -R ugo+rw /.composer
|
|
|
|
if [ $# -gt 0 ];then
|
|
exec gosu $WWWUSER "$@"
|
|
else
|
|
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
|
fi
|