aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorRoss Williams <gunzy83au@gmail.com>2017-11-18 15:50:07 +1000
committer无闻 <u@gogs.io>2017-11-18 00:50:07 -0500
commit925c2a2ca2a00141ad62d06e27a656ab4a204fe2 (patch)
tree7594cd839fdf913e03c0e9b89a8bebd1f7fdb26d /docker
parentf1465b6847d767a378517c584dc6993d1b010c3a (diff)
docker: symlink fixes (#4747)
* Prevent circular links (symlinks) from being created: * /data/gogs/log/log -> /data/gogs/log * /data/gogs/data/data -> /data/gogs/data * /data/git/git -> /data/git
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/s6/gogs/setup6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup
index 40bd82b2..ac82e210 100755
--- a/docker/s6/gogs/setup
+++ b/docker/s6/gogs/setup
@@ -13,11 +13,11 @@ fi
cd /app/gogs
# Link volumed data with app data
-ln -sf /data/gogs/log ./log
-ln -sf /data/gogs/data ./data
+ln -sfn /data/gogs/log ./log
+ln -sfn /data/gogs/data ./data
# Backward Compatibility with Gogs Container v0.6.15
-ln -sf /data/git /home/git
+ln -sfn /data/git /home/git
chown -R git:git /data /app/gogs ~git/
chmod 0755 /data /data/gogs ~git/