mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 22:01:33 +00:00
23 lines
475 B
Bash
23 lines
475 B
Bash
#!/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
|
|
addgroup supervisor > /dev/null 2>&1
|
|
usermod -a -G supervisor sail > /dev/null 2>&1
|
|
|
|
# Set timezone
|
|
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
if [ $# -gt 0 ]; then
|
|
exec gosu $WWWUSER "$@"
|
|
else
|
|
exec /usr/bin/supervisord --nodaemon -c /etc/supervisor/supervisord.conf
|
|
fi
|