diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup index 40bd82b28..f500cca50 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 +[ -h ./log ] || ln -sf /data/gogs/log ./log +[ -h ./data ] || ln -sf /data/gogs/data ./data # Backward Compatibility with Gogs Container v0.6.15 -ln -sf /data/git /home/git +[ -h /home/git ] || ln -sf /data/git /home/git -chown -R git:git /data /app/gogs ~git/ +chown -R git:git /data/git /data/gogs /data/ssh /app/gogs chmod 0755 /data /data/gogs ~git/