/
mitallic
/
HHProfileUser
Обзор
Документация
Войти
/
mitallic
/
HHProfileUser
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
docker/8.4/start-container
26 строк
558 B
Steaves Whois
init
28 май 2025, 13:58
28 май 2025, 13:58
7a2bc65
Код
Авторство
О чём код?
#!/usr/bin/env bash if [ "$SUPERVISOR_PHP_USER" != "root" ] && [ "$SUPERVISOR_PHP_USER" != "sail" ]; then echo "You should set SUPERVISOR_PHP_USER to either 'sail' or 'root'." exit 1 fi 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 if [ "$SUPERVISOR_PHP_USER" = "root" ]; then exec "$@" else exec gosu $WWWUSER "$@" fi else exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf fi