diff options
author | Jean-Philippe Roemer <roemer.jp@gmail.com> | 2015-10-12 16:39:40 +0100 |
---|---|---|
committer | Jean-Philippe Roemer <roemer.jp@gmail.com> | 2015-10-12 18:46:45 +0100 |
commit | 9cba6ff84b703f1b8b69dc58caefb377cd835936 (patch) | |
tree | d494f85242f07172edfa886917f016092a5b197a /docker/s6/gogs | |
parent | 570ddefc3259b8bebebf6db6b7d9029b749358f9 (diff) | |
download | gitea-9cba6ff84b703f1b8b69dc58caefb377cd835936.tar.gz gitea-9cba6ff84b703f1b8b69dc58caefb377cd835936.zip |
Volumed data setup changed to allow #1759
- Volumed subfolder now created up in the ENTRYPOINT script, this way
they are created before S6 even starts making VOLUME.
- The subfolder will be created during VOLUME creation too as ENTRYPOINT
script will be run before /bin/true
- SSH Keys will now be created on a single key basis not replying on the
existence of /data/ssh folder
Diffstat (limited to 'docker/s6/gogs')
-rwxr-xr-x | docker/s6/gogs/setup | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup index 6270d551a6..8c09ff74c6 100755 --- a/docker/s6/gogs/setup +++ b/docker/s6/gogs/setup @@ -1,11 +1,7 @@ #!/bin/sh -if ! test -d /data/gogs; then - mkdir -p /data/gogs/data /data/gogs/conf /data/gogs/log /data/git -fi - if ! test -d ~git/.ssh; then - mkdir ~git/.ssh + mkdir -p ~git/.ssh chmod 700 ~git/.ssh fi |