From 81fcc0db0c2ae8ed84931995e505076e8227948c Mon Sep 17 00:00:00 2001
From: Alban Garrigue <alban@garrigue.me>
Date: Sun, 22 Feb 2015 13:06:46 +0100
Subject: [PATCH] $DIRECTORY variable is never set

---
 docker/templates/init_gogs.sh.tpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/templates/init_gogs.sh.tpl b/docker/templates/init_gogs.sh.tpl
index 26cff4e50..ada11f95a 100644
--- a/docker/templates/init_gogs.sh.tpl
+++ b/docker/templates/init_gogs.sh.tpl
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ ! -d "$DIRECTORY" ]; then
+if [ ! -d "$GOGS_CUSTOM_CONF_PATH" ]; then
     mkdir -p $GOGS_CUSTOM_CONF_PATH
 
 echo "