- Fix: Notifiable-Trait zum User-Model hinzugefuegt (behebt notify()-500er) - Installer: SMTP-Verbindungstest mit EsmtpTransport + Ueberspringen-Link - Admin: Neuer E-Mail-Tab mit SMTP-Konfiguration + Verbindungstest - Admin: Lazy Quill-Initialisierung (nur sichtbare Locale wird geladen) - Uebersetzungen: 17 neue Mail-Keys in allen 6 Sprachen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
558 B
Bash
Executable File
27 lines
558 B
Bash
Executable File
#!/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
|