#!/bin/bash -x # This is *container* setup for the OIDC stuff export APP_NAME="${DOMAIN_NAME} Gitea" OIDC_CANARY="/data/oidc.done" if [ -r "$OIDC_CANARY" ]; then # based on https://github.com/go-gitea/gitea/blob/main/Dockerfile exec "/usr/bin/entrypoint" "/bin/s6-svscan" "/etc/s6"; fi # We have to do some setup, so start things and wait for the config # file to appear so that we can edit it. "/usr/bin/entrypoint" "/bin/s6-svscan" "/etc/s6" & echo >&2 "*** Sleeping for setup" sleep 30 echo >&2 "*** Adding OIDC login for $DOMAIN_NAME" su -s /bin/sh git <&2 "*** Done, maybe it works?" exit 0