aboutsummaryrefslogtreecommitdiff
path: root/docker/rootless/usr/local/bin/docker-entrypoint.sh
blob: d05777adc5645647c0cb8f9d7c3e264d1341e77e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ -x /usr/local/bin/docker-setup.sh ]; then
    /usr/local/bin/docker-setup.sh || { echo 'docker setup failed' ; exit 1; }
fi

if [ $# -gt 0 ]; then
    exec "$@"
else
    exec /usr/local/bin/gitea -c ${GITEA_APP_INI} web
fi