aboutsummaryrefslogtreecommitdiff
path: root/docker/s6/gogs/setup
diff options
context:
space:
mode:
Diffstat (limited to 'docker/s6/gogs/setup')
-rwxr-xr-xdocker/s6/gogs/setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup
index 7354397c..90ccf5e0 100755
--- a/docker/s6/gogs/setup
+++ b/docker/s6/gogs/setup
@@ -20,7 +20,7 @@ ln -sfn /data/gogs/data ./data
ln -sfn /data/git /home/git
# Only chown for the first time, '/data/gogs/conf/app.ini' must exist inside Docker after installation
-if ! test -d /data/gogs/conf/app.ini; then
+if ! test -f /data/gogs/conf/app.ini; then
chown -R git:git /data /app/gogs ~git/
fi
chmod 0755 /data /data/gogs ~git/