Skip to content

Commit

Permalink
docker: change how to check whether initial or not (#5766)
Browse files Browse the repository at this point in the history
  • Loading branch information
midoridge authored and unknwon committed Aug 11, 2019
1 parent f1e0ebf commit 9571a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/s6/gogs/setup
Expand Up @@ -19,8 +19,8 @@ ln -sfn /data/gogs/data ./data
# Backward Compatibility with Gogs Container v0.6.15
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 -f /data/gogs/conf/app.ini; then
# Only chown for the first time, owner of '/data' is 'git' inside Docker after installation
if [ $(stat -c '%U' /data) != 'git' ]; then
chown -R git:git /data /app/gogs ~git/
fi
chmod 0755 /data /data/gogs ~git/

0 comments on commit 9571a9b

Please sign in to comment.