mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-05 06:43:16 +00:00
9cba6ff84b
- 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
19 lines
347 B
Bash
Executable file
19 lines
347 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if ! test -d ~git/.ssh; then
|
|
mkdir -p ~git/.ssh
|
|
chmod 700 ~git/.ssh
|
|
fi
|
|
|
|
if ! test -f ~git/.ssh/environment; then
|
|
echo "GOGS_CUSTOM=${GOGS_CUSTOM}" > ~git/.ssh/environment
|
|
chmod 600 ~git/.ssh/environment
|
|
fi
|
|
|
|
cd /app/gogs
|
|
|
|
ln -sf /data/gogs/log ./log
|
|
ln -sf /data/gogs/data ./data
|
|
|
|
chown -R git:git /data /app/gogs ~git/
|