summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorJean-Philippe Roemer <roemer.jp@gmail.com>2015-10-12 21:28:26 +0100
committerJean-Philippe Roemer <roemer.jp@gmail.com>2015-10-12 21:28:26 +0100
commitbfed40eec490f3c22c848b0c1c1550d8b349f821 (patch)
tree4529c6f46b6e3d09170735a0f0d58ed430ae7a17 /docker
parent575300cd5709e3abadd9bd328a1425d3991550d5 (diff)
downloadgitea-bfed40eec490f3c22c848b0c1c1550d8b349f821.tar.gz
gitea-bfed40eec490f3c22c848b0c1c1550d8b349f821.zip
Docker repository path backward compatibility fix:
- resolve #1765 - create link to old git repository path: `/home/git/gogs-repository`
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/s6/gogs/setup4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup
index 8c09ff74c6..626cda1f04 100755
--- a/docker/s6/gogs/setup
+++ b/docker/s6/gogs/setup
@@ -12,7 +12,11 @@ fi
cd /app/gogs
+# Link volumed data with app data
ln -sf /data/gogs/log ./log
ln -sf /data/gogs/data ./data
+# Backward Compatibility with Docker v0.6.15
+ln -sf /data/git /home/git
+
chown -R git:git /data /app/gogs ~git/