aboutsummaryrefslogtreecommitdiff
path: root/docker/templates/init_gogs.sh.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'docker/templates/init_gogs.sh.tpl')
-rw-r--r--docker/templates/init_gogs.sh.tpl12
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 "$@"