diff options
Diffstat (limited to 'docker/templates/init_gogs.sh.tpl')
-rw-r--r-- | docker/templates/init_gogs.sh.tpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/templates/init_gogs.sh.tpl b/docker/templates/init_gogs.sh.tpl new file mode 100644 index 00000000..26cff4e5 --- /dev/null +++ b/docker/templates/init_gogs.sh.tpl @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ ! -d "$DIRECTORY" ]; then + mkdir -p $GOGS_CUSTOM_CONF_PATH + +echo " +{{ CONFIG }} +" >> $GOGS_CUSTOM_CONF + +fi + +exec "$@" |